|
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
public class 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.
Licensing:
This class is a DynamicPDF Merger Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
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 |
---|
public ImportedPageContents(java.lang.String filePath, int pageNumber)
ImportedPageContents
.
filePath
- Physical file path of the PDF document to import.pageNumber
- Page number to import.ImportedPageContents
public ImportedPageContents(PdfPage pdfPage)
ImportedPageContents
.
pdfPage
- PdfPage
object to import.ImportedPageContents
,
PdfPage
public ImportedPageContents(java.lang.String filePath, int pageNumber, com.cete.dynamicpdf.merger.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, com.cete.dynamicpdf.merger.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(com.cete.dynamicpdf.merger.PdfPageBoundaries pageBoundaries)
pageBoundaries
- public ResourceType getResourceType()
getResourceType
in class Resource
ResourceType
public void draw(DocumentWriter writer)
DocumentWriter
object.
draw
in class Resource
writer
- DocumentWriter
object to receive the contents output.DocumentWriter
public int getRequiredPdfObjects()
getRequiredPdfObjects
in class Resource
public float getClipLeft()
public void setClipLeft(float value)
value
- the left clipping of the contents.public float getClipRight()
public void setClipRight(float value)
value
- the right clipping of the contents.public float getClipTop()
public void setClipTop(float value)
value
- the top clipping of the contents.public float getClipBottom()
public void setClipBottom(float value)
value
- the bottom clipping of the contents.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 |