Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Interface PdfPageReadHandler


public interface PdfPageReadHandler

This interface is implemented by user classes to provide an event when a page is read from an existing PDF document. All pages in a document are read when a document is loaded. User classes that implement this interface can specify individual header height, footer height, left margin, top margin, right margin, bottom margin for text-rendering operations on those pages.


Method Summary
 double[] onPageRead(PdfDocument d, int pageNo, double pageWidthInPoints, double pageHeightInPoints)
          Called when a page is read from a PDF document.
 

Method Detail

onPageRead

public double[] onPageRead(PdfDocument d,
                           int pageNo,
                           double pageWidthInPoints,
                           double pageHeightInPoints)
Called when a page is read from a PDF document.

Parameters:
d - document whose pages are being read
pageNo - number of the current page that is being read
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 for subsequent text-rendering operations

Gnostice PDFOne
Pro. Ed. v5.0.0

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