|
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.ImportedPageContents
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.
ImportedPageData
| Constructor Summary | |
ImportedPageContents(PdfPage pdfPage)
Creates a new instance of ImportedPageContents. |
|
ImportedPageContents(PdfPage pdfPage,
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,
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. |
float |
getWidth()
Gets the clipped width of the contents. |
void |
setBoundaries(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 |
public ImportedPageContents(java.lang.String filePath,
int pageNumber)
ImportedPageContents.
filePath - Physical file path of the PDF document to import.pageNumber - Page number to import.ImportedPageContentspublic ImportedPageContents(PdfPage pdfPage)
ImportedPageContents.
pdfPage - PdfPage object to import.ImportedPageContents,
PdfPage
public ImportedPageContents(java.lang.String filePath,
int pageNumber,
PdfPageBoundaries pageBoundaries)
ImportedPageContents.
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.ImportedPageContents
public ImportedPageContents(PdfPage pdfPage,
PdfPageBoundaries pageBoundaries)
ImportedPageContents.
pdfPage - PdfPage object to import.pageBoundaries - The boundaries box to use as the edges of the page.ImportedPageContents,
PdfPage| Method Detail |
public void setBoundaries(PdfPageBoundaries pageBoundaries)
pageBoundaries - public void draw(DocumentWriter writer)
DocumentWriter object.
draw in class Resourcewriter - DocumentWriter object to receive the contents output.DocumentWriterpublic int getRequiredPdfObjects()
getRequiredPdfObjects in class Resourcepublic float getClipLeft()
public void setClipLeft(float value)
public float getClipRight()
public void setClipRight(float value)
public float getClipTop()
public void setClipTop(float value)
public float getClipBottom()
public void setClipBottom(float value)
public float getWidth()
public float getHeight()
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||