|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.Resource
|
+--com.cete.dynamicpdf.merger.ImportedPageDataContents
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 |
public ImportedPageDataContents(java.lang.String filePath,
int pageNumber)
ImportedPageDataContents class.
filePath - Physical file path of the pdf document to import.pageNumber - Page number to import.public ImportedPageDataContents(PdfPage pdfPage)
ImportedPageDataContents class.
pdfPage - PdfPage object to import.PdfPage| Method Detail |
public int getRequiredPdfObjects()
getRequiredPdfObjects in class Resourcepublic void draw(DocumentWriter writer)
DocumentWriter object.
draw in class Resourcewriter - DocumentWriter object to receive the contents output.DocumentWriterpublic float getClipLeft()
public void setClipLeft(float clipLeft)
public float getClipRight()
public void setClipRight(float clipRight)
public float getClipTop()
public void setClipTop(float clipTop)
public float getClipBottom()
public void setClipBottom(float clipBottom)
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||