Gnostice PDFOne
Free


com.gnostice.pdfone
Interface PdfPageReadHandler


public interface PdfPageReadHandler

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

onPageRead

public double[] onPageRead(PdfDocument d,
                           int pageNo,
                           double pageWidthInPoints,
                           double pageHeightInPoints)
Called when a page is read from the specified document. All pages are read from a document when a 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.

Parameters:
d - document in which text is being rendered
pageNo - number of the page where text is being rendered
pageWidthInPoints - width of the page (in points)
pageHeightInPoints - height of the page (in points)
Returns:
an array specifying header height, footer height, left margin, top margin, right margin, bottom margin, and measurement unit

Gnostice PDFOne
Free

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2008 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com