DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPage

java.lang.Object
  |
  +--com.cete.dynamicpdf.Page
        |
        +--com.cete.dynamicpdf.merger.ImportedPage

public class ImportedPage
extends Page

This class can be used to pull a single selected page from an existing PDF document.

Licensing:
This class is a DynamicPDF Merger Standard Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
ImportedPage(PdfPage pdfPage)
          Initializes a new instance of the ImportedPage class.
ImportedPage(PdfPage pdfPage, float margins)
          Initializes a new instance of the ImportedPage class.
ImportedPage(java.lang.String filePath, int pageNumber)
          Initializes a new instance of the ImportedPage class.
ImportedPage(java.lang.String filePath, int pageNumber, float margins)
          Initializes a new instance of the ImportedPage class.
 
Method Summary
protected  void drawPrepend(PageWriter writer)
          Draws the prepended output to the given com.cete.dynamicpdf.io.PageWriter object.
 Group getBackgroundElements()
          Gets a collection of page elements to be drawn as a background on the page.
 boolean getImportAllOtherData()
          Gets a value specifying whether or not to import all data except annotations and form fields.
 boolean getImportAnnotations()
          Gets a value specifying whether or not to import the annotations.
 boolean getImportFormFields()
          Gets a value specifying whether or not to import the form fields.
 void setImportAllOtherData(boolean value)
          Sets a value specifying whether or not to import all data except annotations and form fields.
 void setImportAnnotations(boolean value)
          Sets a value specifying whether or not to import the annotations.
 void setImportFormFields(boolean value)
          Sets a value specifying whether or not to import the form fields.
 
Methods inherited from class com.cete.dynamicpdf.Page
draw, getApplyDocumentTemplate, getApplySectionTemplate, getDimensions, getElements, getRotate, setApplyDocumentTemplate, setApplySectionTemplate, setDimensions, setRotate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedPage

public ImportedPage(java.lang.String filePath,
                    int pageNumber)
Initializes a new instance of the ImportedPage class.

Parameters:
filePath - Physical file path of the PDF document to import.
pageNumber - Page number to import.

ImportedPage

public ImportedPage(java.lang.String filePath,
                    int pageNumber,
                    float margins)
Initializes a new instance of the ImportedPage class.

Parameters:
filePath - Physical file path of the PDF document to import.
pageNumber - Page number to import.
margins - Margins of the new page. Overrides the default margins.

ImportedPage

public ImportedPage(PdfPage pdfPage)
Initializes a new instance of the ImportedPage class.

Parameters:
pdfPage - PdfPage object to import.
See Also:
PdfPage

ImportedPage

public ImportedPage(PdfPage pdfPage,
                    float margins)
Initializes a new instance of the ImportedPage class.

Parameters:
pdfPage - PdfPage object to import.
margins - Margins of the new page. Overrides the default margins.
See Also:
PdfPage
Method Detail

drawPrepend

protected void drawPrepend(PageWriter writer)
Draws the prepended output to the given com.cete.dynamicpdf.io.PageWriter object.

Overrides:
drawPrepend in class Page
Parameters:
writer - PageWriter to receive the output.
See Also:
PageWriter

getImportAnnotations

public boolean getImportAnnotations()
Gets a value specifying whether or not to import the annotations.


setImportAnnotations

public void setImportAnnotations(boolean value)
Sets a value specifying whether or not to import the annotations.


getImportFormFields

public boolean getImportFormFields()
Gets a value specifying whether or not to import the form fields.


setImportFormFields

public void setImportFormFields(boolean value)
Sets a value specifying whether or not to import the form fields.


getImportAllOtherData

public boolean getImportAllOtherData()
Gets a value specifying whether or not to import all data except annotations and form fields.


setImportAllOtherData

public void setImportAllOtherData(boolean value)
Sets a value specifying whether or not to import all data except annotations and form fields.


getBackgroundElements

public Group getBackgroundElements()
Gets a collection of page elements to be drawn as a background on the page. Page elements placed in this collection will appear below the imported PDF data. Use the Page.getElements() method to place page elements on top of the imported PDF data.

Returns:
A collection of page elements to be drawn as a background on the page.
See Also:
Group

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.1 for Java generated on October 06, 2006
© Copyright 2006, ceTe Software