DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPageContents

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.merger.ImportedPageContents

public class ImportedPageContents
extends Resource

This class can be used to reuse pages content in multiple ImportedPageData objects. Doing so will
reduce the size of the output PDF because the contents will only appears in the output document once.

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

View Example

See Also:
ImportedPageData

Constructor Summary
ImportedPageContents(PdfPage pdfPage)
          Creates a new instance of ImportedPageContents.
ImportedPageContents(PdfPage pdfPage, com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
          Creates a new instance of ImportedPageContents.
ImportedPageContents(java.lang.String filePath, int pageNumber)
          Creates a new instance of ImportedPageContents.
ImportedPageContents(java.lang.String filePath, int pageNumber, com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
          Creates a new instance of ImportedPageContents.
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the contents the given DocumentWriter object.
 float getClipBottom()
          Gets the bottom clipping of the contents.
 float getClipLeft()
          Gets the left clipping of the contents.
 float getClipRight()
          Gets the right clipping of the contents.
 float getClipTop()
          Gets the top clipping of the contents.
 float getHeight()
          Gets the clipped height of the contents.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the imported page data's contents.
 ResourceType getResourceType()
          Gets the type of resource.
 float getWidth()
          Gets the clipped width of the contents.
 void setBoundaries(com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
          Sets the boundaries of the page to the specified boundary on the imported page.
 void setClipBottom(float value)
          Sets the bottom clipping of the contents.
 void setClipLeft(float value)
          Sets the left clipping of the contents.
 void setClipRight(float value)
          Sets the right clipping of the contents.
 void setClipTop(float value)
          Sets the top clipping of the contents.
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedPageContents

public ImportedPageContents(java.lang.String filePath,
                            int pageNumber)
Creates a new instance of ImportedPageContents.

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

ImportedPageContents

public ImportedPageContents(PdfPage pdfPage)
Creates a new instance of ImportedPageContents.

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

ImportedPageContents

public ImportedPageContents(java.lang.String filePath,
                            int pageNumber,
                            com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
Creates a new instance of ImportedPageContents.

Parameters:
filePath - Physical file path of the PDF document to import.
pageNumber - Page number to import.
pageBoundaries - The boundaries box to use as the edges of the page.
See Also:
ImportedPageContents

ImportedPageContents

public ImportedPageContents(PdfPage pdfPage,
                            com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
Creates a new instance of ImportedPageContents.

Parameters:
pdfPage - PdfPage object to import.
pageBoundaries - The boundaries box to use as the edges of the page.
See Also:
ImportedPageContents, PdfPage
Method Detail

setBoundaries

public void setBoundaries(com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
Sets the boundaries of the page to the specified boundary on the imported page.

Parameters:
pageBoundaries -

getResourceType

public ResourceType getResourceType()
Gets the type of resource.

Overrides:
getResourceType in class Resource
Returns:
the type of resource.
See Also:
ResourceType

draw

public void draw(DocumentWriter writer)
Draws the contents the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to receive the contents output.
See Also:
DocumentWriter

getRequiredPdfObjects

public int getRequiredPdfObjects()
Gets the number of PDF objects required by the imported page data's contents.

Overrides:
getRequiredPdfObjects in class Resource
Returns:
the number of PDF objects required by the imported page data's contents.

getClipLeft

public float getClipLeft()
Gets the left clipping of the contents.

Returns:
The left clipping of the contents.

setClipLeft

public void setClipLeft(float value)
Sets the left clipping of the contents.

Parameters:
value - the left clipping of the contents.

getClipRight

public float getClipRight()
Gets the right clipping of the contents.

Returns:
The right clipping of the contents.

setClipRight

public void setClipRight(float value)
Sets the right clipping of the contents.

Parameters:
value - the right clipping of the contents.

getClipTop

public float getClipTop()
Gets the top clipping of the contents.

Returns:
The top clipping of the contents.

setClipTop

public void setClipTop(float value)
Sets the top clipping of the contents.

Parameters:
value - the top clipping of the contents.

getClipBottom

public float getClipBottom()
Gets the bottom clipping of the contents.

Returns:
The bottom clipping of the contents.

setClipBottom

public void setClipBottom(float value)
Sets the bottom clipping of the contents.

Parameters:
value - the bottom clipping of the contents.

getWidth

public float getWidth()
Gets the clipped width of the contents.

Returns:
The clipped width of the contents.

getHeight

public float getHeight()
Gets the clipped height of the contents.

Returns:
The clipped height of the contents.

DynamicPDF by ceTe Software

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