Class PDFreactor

java.lang.Object
com.realobjects.pdfreactor.PDFreactor

public class PDFreactor extends Object

PDFreactor converts HTML and XML documents into PDF or image.

This sample demonstrates the use of PDFreactor:

 PDFreactor pdfReactor = new PDFreactor();
 
 Configuration config = new Configuration();
 
 //required
 config.setDocument("https://www.realobjects.com/");
 
 Result result = pdfReactor.convert(config);
 byte[] pdf = result.getDocument();

Important: On a system without a graphical environment you have to enable the headless mode by setting the appropriate system property. Please see the manual for details.

For more information please have a look at the PDFreactor manual.