To use the PDGen runtime you need to:
- Add the PDGen runtime jar to your Java application. You can find it at: Maven Central.
- Create a PDGen Object
import org.pdgen.runtime.PDGen;
PDGen pdg = new PDGen(“mytemplates.pdg”); - Start the generation process:
OutputStream pdfout = pdg.createPDF(“mytemplate”, mydata);