Top Description Methods
com.openhtmltopdf.pdfboxout

public Interface PDFCreationListener


Callback listener for PDF creation. To use this, call PdfBoxRenderer#setListener(PDFCreationListener).

Method Summary

Modifier and TypeMethod and Description
public void
onClose(PdfBoxRenderer
the iTextRenderer preparing the document
renderer
)

Called immediately before the Pdf Document instance is closed

public void
preOpen(PdfBoxRenderer
the renderer preparing the document
pdfBoxRenderer
)

Called immediately after the PDF Document instance is created before the content is written.

public void
preWrite(PdfBoxRenderer
the renderer preparing the document
pdfBoxRenderer
,
int
the number of pages that will be written to the PDF document
pageCount
)

Called immediately before the pages of the PDF file are about to be written out.

Method Detail

onCloseback to summary
public void onClose(PdfBoxRenderer renderer)

Called immediately before the Pdf Document instance is closed

Parameters
renderer:PdfBoxRenderer

the iTextRenderer preparing the document

preOpenback to summary
public void preOpen(PdfBoxRenderer pdfBoxRenderer)

Called immediately after the PDF Document instance is created before the content is written.

Parameters
pdfBoxRenderer:PdfBoxRenderer

the renderer preparing the document

preWriteback to summary
public void preWrite(PdfBoxRenderer pdfBoxRenderer, int pageCount)

Called immediately before the pages of the PDF file are about to be written out. This is an opportunity to modify any document metadata that will be used to generate the PDF header fields (the document information dictionary).

Parameters
pdfBoxRenderer:PdfBoxRenderer

the renderer preparing the document

pageCount:int

the number of pages that will be written to the PDF document