DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPageData

java.lang.Object
  |
  +--com.cete.dynamicpdf.PageElement
        |
        +--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
 void draw(PageWriter writer)
          Draws the imported page data to the given PageWriter object.
 float getAngle()
          Gets the angle of the page in degrees.
 float getClipBottom()
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipBottom()
 float getClipLeft()
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipLeft()
 float getClipRight()
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipRight()
 float getClipTop()
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipTop()
 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 setClipBottom(float clipBottom)
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipBottom(float value)
 void setClipLeft(float clipLeft)
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipLeft(float value)
 void setClipRight(float clipRight)
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipRight(float value)
 void setClipTop(float clipTop)
          Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipTop(float value)
 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.
 
Methods inherited from class com.cete.dynamicpdf.PageElement
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

draw

public void draw(PageWriter writer)
Draws the imported page data to the given PageWriter object.

Specified by:
draw in class PageElement
Parameters:
writer - PageWriter object to receive the imported page data output.
See Also:
PageWriter

setClipLeft

public void setClipLeft(float clipLeft)
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipLeft(float value)

Sets the left clipping of the page.

Parameters:
clipLeft - The left clipping of the page.

getClipLeft

public float getClipLeft()
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipLeft()

Gets the left clipping of the page.

Returns:
The left clipping of the page.

setClipRight

public void setClipRight(float clipRight)
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipRight(float value)

Sets the right clipping of the page.

Parameters:
clipRight - The right clipping of the page.

getClipRight

public float getClipRight()
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipRight()

Gets the right clipping of the page.

Returns:
The right clipping of the page.

setClipTop

public void setClipTop(float clipTop)
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipTop(float value)

Sets the top clipping of the page.

Parameters:
clipTop - The top clipping of the page.

getClipTop

public float getClipTop()
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipTop()

Gets the top clipping of the page.

Returns:
The top clipping of the page.

setClipBottom

public void setClipBottom(float clipBottom)
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.setClipBottom(float value)

Sets the bottom clipping of the page.

Parameters:
clipBottom - The bottom clipping of the page.

getClipBottom

public float getClipBottom()
Deprecated. As of DynamicPDF Merger v4.0.0, replaced by ImportedPageContents.getClipBottom()

Gets the bottom clipping of the page.

Returns:
The bottom clipping of the page.

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.

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.

See Also:
ImportedPageContents

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.3 for Java generated on March 22, 2007
© Copyright 2007, ceTe Software