DynamicPDF by ceTe Software

com.cete.dynamicpdf.merger
Class ImportedPageDataContents

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.merger.ImportedPageDataContents

public class ImportedPageDataContents
extends Resource

This class can be used to reuse a pages contents 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.

View Example


Constructor Summary
ImportedPageDataContents(PdfPage pdfPage)
          Initializes a new instance of the ImportedPageDataContents class.
ImportedPageDataContents(java.lang.String filePath, int pageNumber)
          Initializes a new instance of the ImportedPageDataContents class.
 
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.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the imported page data's contents.
 void setClipBottom(float clipBottom)
          Sets the bottom clipping of the contents.
 void setClipLeft(float clipLeft)
          Sets the left clipping of the contents.
 void setClipRight(float clipRight)
          Sets the right clipping of the contents.
 void setClipTop(float clipTop)
          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

ImportedPageDataContents

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

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

ImportedPageDataContents

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

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

getRequiredPdfObjects

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

Specified by:
getRequiredPdfObjects in class Resource

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

getClipLeft

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


setClipLeft

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


getClipRight

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


setClipRight

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


getClipTop

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


setClipTop

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


getClipBottom

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


setClipBottom

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


DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software