|
Gnostice PDFOne
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides an event when a page is read from an existing
document. All pages in a document are read during the creation of
the PdfDocument
object using a
PdfReader
object. User classes can
implement this interface to specify header height, footer height,
left margin, top margin, right margin, bottom margin in a specified
measurement unit with which all text-rendering operations should be
performed on the page.
Method Summary | |
double[] |
onPageRead(PdfDocument d,
int pageNo,
double pageWidthInPoints,
double pageHeightInPoints)
Called when a page is read from the specified document. |
Method Detail |
public double[] onPageRead(PdfDocument d, int pageNo, double pageWidthInPoints, double pageHeightInPoints)
PdfDocument.PdfDocument(PdfReader)
object is created.
The event exposes the width and height of the page. Based on
the given width and height of the page, user classes handling
this event can then choose to specify header height, footer
height, left margin, top margin, right bottom margin, and the
measurement unit with which these values are specified.
d
- document in which text is being renderedpageNo
- number of the page where text is being renderedpageWidthInPoints
- width of the page (in points)pageHeightInPoints
- height of the page (in points)
|
Free |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |