dobe.com/devnet/pdf/pdf_reference.html
Usage
// Setup output stream OutputStream outputStream = ... // Create W3C document model Document doc = ... // Create new PDF renderer ITextRenderer renderer = new ITextRenderer(); // Add PDF creation listener PDFCreationListener pdfCreationListener = new XHtmlMetaToPdfInfoAdapter( doc ); renderer.setListener( pdfCreationListener); // Add W3C document to renderer renderer.setDocument( doc, null ); // Layout PDF document renderer.layout(); // Write PDF document renderer.createPDF( outputStream, true );
Notes
This class was derived from a sample PDF creation listener at "http://markmail.org/message/46t3bw7q6mbhvra2" by Jesse Keller
.
@author Tim Telcik
@see DefaultPDFCreationListener
@see PDFCreationListener
@see ITextRenderer
@see http://markmail.org/message/46t3bw7q6mbhvra2
@see http://www.adobe.com/devnet/pdf/pdf_reference.html
@see http://www.seoconsultants.com/meta-tags/dublin/