DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPageData

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.merger.ImportedPageData

public class ImportedPageData
extends PageElement

This class can be used to pull a single selected page from an existing PDF document. You can scale it or rotate it and you can place it on an another page.

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

View Example


Constructor Summary
ImportedPageData(ImportedPageContents contents)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(ImportedPageContents contents, float xOffset, float yOffset)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(ImportedPageContents contents, float xOffset, float yOffset, float scale)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(PdfPage pdfPage)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(PdfPage pdfPage, float xOffset, float yOffset)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(PdfPage pdfPage, float xOffset, float yOffset, float scale)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(java.lang.String filePath, int pageNumber)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(java.lang.String filePath, int pageNumber, float xOffset, float yOffset)
          Initializes a new instance of the ImportedPageData class.
ImportedPageData(java.lang.String filePath, int pageNumber, float xOffset, float yOffset, float scale)
          Initializes a new instance of the ImportedPageData class.
 
Method Summary
 float getAngle()
          Gets the angle of the page in degrees.
 ImportedPageContents getContents()
          Gets the imported page data's ImportedPageContents object.
 float getHeight()
          Gets the height of the page.
 float getScaleX()
          Gets the horizontal scale of the page.
 float getScaleY()
          Gets the vertical scale of the page.
 float getWidth()
          Gets the width of the page.
 float getXOffset()
          Gets the X offset of the page.
 float getYOffset()
          Gets the Y offset of the page.
 void setAngle(float angle)
          Sets the angle of the page in degrees.
 void setHeight(float height)
          Sets the height of the page.
 void setScaleX(float scaleX)
          Sets the horizontal scale of the page.
 void setScaleY(float scaleY)
          Sets the vertical scale of the page.
 void setWidth(float width)
          Sets the width of the page.
 void setXOffset(float xOffset)
          Sets the X offset of the page.
 void setYOffset(float yOffset)
          Sets the Y offset of the page.
 float ZInternal_getCellX()
          Gets the height of the imported page area.
 float ZInternal_getCellY()
          Gets the height of the imported page area.
 void ZInternal_setCellX(float value)
          Sets the width of the imported page area.
 void ZInternal_setCellY(float value)
          Sets the width of the imported page area.
 
Methods inherited from class com.cete.dynamicpdf.PageElement
draw, getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedPageData

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

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

ImportedPageData

public ImportedPageData(java.lang.String filePath,
                        int pageNumber,
                        float xOffset,
                        float yOffset)
Initializes a new instance of the ImportedPageData class.

Parameters:
filePath - Physical file path of the PDF document to import.
pageNumber - Page number to import.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page.
See Also:
ImportedPageData

ImportedPageData

public ImportedPageData(java.lang.String filePath,
                        int pageNumber,
                        float xOffset,
                        float yOffset,
                        float scale)
Initializes a new instance of the ImportedPageData class.

Parameters:
filePath - Physical file path of the PDF document to import.
pageNumber - Page number to import.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page
scale - Scale of the imported page.
See Also:
ImportedPageData

ImportedPageData

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

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

ImportedPageData

public ImportedPageData(PdfPage pdfPage,
                        float xOffset,
                        float yOffset)
Initializes a new instance of the ImportedPageData class.

Parameters:
pdfPage - PdfPage object to import.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page.
See Also:
ImportedPageData, PdfPage

ImportedPageData

public ImportedPageData(PdfPage pdfPage,
                        float xOffset,
                        float yOffset,
                        float scale)
Initializes a new instance of the ImportedPageData class.

Parameters:
pdfPage - PdfPage object to import.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page.
scale - Scale of the imported page.
See Also:
ImportedPageData, PdfPage

ImportedPageData

public ImportedPageData(ImportedPageContents contents)
Initializes a new instance of the ImportedPageData class.

Parameters:
contents - ImportedPageContents object containing the pages contents.
See Also:
ImportedPageData, ImportedPageContents

ImportedPageData

public ImportedPageData(ImportedPageContents contents,
                        float xOffset,
                        float yOffset)
Initializes a new instance of the ImportedPageData class.

Parameters:
contents - ImportedPageContents object containing the pages contents.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page.
See Also:
ImportedPageData, ImportedPageContents

ImportedPageData

public ImportedPageData(ImportedPageContents contents,
                        float xOffset,
                        float yOffset,
                        float scale)
Initializes a new instance of the ImportedPageData class.

Parameters:
contents - ImportedPageContents object containing the pages contents.
xOffset - X offset of the placement on the page.
yOffset - Y offset of the placement on the page.
scale - Scale of the imported page.
See Also:
ImportedPageData, ImportedPageContents
Method Detail

setXOffset

public void setXOffset(float xOffset)
Sets the X offset of the page.

Parameters:
xOffset - The X offset of the page.

getXOffset

public float getXOffset()
Gets the X offset of the page.

Returns:
The X offset of the page.

setYOffset

public void setYOffset(float yOffset)
Sets the Y offset of the page.

Parameters:
yOffset - The Y offset of the page.

getYOffset

public float getYOffset()
Gets the Y offset of the page.

Returns:
The Y offset of the page.

ZInternal_getCellX

public float ZInternal_getCellX()
Gets the height of the imported page area.

Returns:
The cellX of the imported page area.

ZInternal_setCellX

public void ZInternal_setCellX(float value)
Sets the width of the imported page area.

Parameters:
value - the cellX of the imported page area.

ZInternal_getCellY

public float ZInternal_getCellY()
Gets the height of the imported page area.

Returns:
The cellY of the imported page area.

ZInternal_setCellY

public void ZInternal_setCellY(float value)
Sets the width of the imported page area.

Parameters:
value - the cellY of the imported page area.

setScaleX

public void setScaleX(float scaleX)
Sets the horizontal scale of the page.

Parameters:
scaleX - The horizontal scale of the page.

getScaleX

public float getScaleX()
Gets the horizontal scale of the page.

Returns:
The horizontal scale of the page.

setScaleY

public void setScaleY(float scaleY)
Sets the vertical scale of the page.

Parameters:
scaleY - The vertical scale of the page.

getScaleY

public float getScaleY()
Gets the vertical scale of the page.

Returns:
The vertical scale of the page.

setWidth

public void setWidth(float width)
Sets the width of the page.

Parameters:
width - The width of the page.

getWidth

public float getWidth()
Gets the width of the page.

Returns:
The width of the page.

setHeight

public void setHeight(float height)
Sets the height of the page.

Parameters:
height - The height of the page.

getHeight

public float getHeight()
Gets the height of the page.

Returns:
The height of the page.

setAngle

public void setAngle(float angle)
Sets the angle of the page in degrees.

Parameters:
angle - The angle of the page in degrees.

getAngle

public float getAngle()
Gets the angle of the page in degrees.

Returns:
The angle of the page in degrees.

getContents

public ImportedPageContents getContents()
Gets the imported page data's ImportedPageContents object.

Returns:
the imported page data's ImportedPageContents object.
See Also:
ImportedPageContents

DynamicPDF by ceTe Software

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