DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPage

java.lang.Object
  extended by com.cete.dynamicpdf.Page
      extended by 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.
 boolean getLogicalStructure()
          Gets a value specifying whether or not to import the logical structures.
 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.
 void setLogicalStructure(boolean value)
          Sets a value specifying whether or not to import the logical structures.
 
Methods inherited from class com.cete.dynamicpdf.Page
addInvisibleSignature, getApplyDocumentTemplate, getApplySectionTemplate, getDimensions, getElements, getReaderEvents, 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.

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.

Returns:
the importing status of the annotations.

setImportAnnotations

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

Parameters:
value - 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.

Returns:
importing status of the form fields.

setImportFormFields

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

Parameters:
value - 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.

Returns:
the importing status of the 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.

Parameters:
value - 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

getLogicalStructure

public boolean getLogicalStructure()
Gets a value specifying whether or not to import the logical structures.

Returns:
importing status of the logical structure import.

setLogicalStructure

public void setLogicalStructure(boolean value)
Sets a value specifying whether or not to import the logical structures.

Parameters:
value - a value specifying whether or not to import the logical structures.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software