PdfPage
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
public class PdfPage extends ContentPart
Represents pdf document page.
| Constructor | Description |
|---|---|
| PdfPage(PdfContent parent, StrategyManager |
| Method | Description |
|---|---|
| getWidth() | Gets the width of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points. |
| getHeight() | Gets the height of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points. |
| getArtifacts() | Gets the collection of all artifacts of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage). |
| getXObjects() | Gets the collection of all XObjects of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage). |
| getAnnotations() | Gets the collection of all annotations of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage). |
| getAsposePdfPage() | |
| getContent() | |
| getPageRectangle() | |
| addArtifactWatermark(Watermark watermark) | |
| addAnnotationWatermark(Watermark watermark, boolean isPrintOnly) | |
| rasterize(int horizontalResolution, int verticalResolution, int imageFormat) | Converts page content into an image. |
| addArtifactToCollection(Artifact artifact) | |
| addAnnotationToCollection(Annotation annotation) |
public PdfPage(PdfContent parent, StrategyManager<Integer> strategyManager, Page asposePdfPage)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parent | PdfContent | |
| strategyManager | com.groupdocs.watermark.internal.StrategyManager<java.lang.Integer> | |
| asposePdfPage | com.aspose.pdf.Page |
public final double getWidth()
Gets the width of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points.
Returns:
double - The width of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points.
public final double getHeight()
Gets the height of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points.
Returns:
double - The height of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage) in points.
public final PdfArtifactCollection getArtifacts()
Gets the collection of all artifacts of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
Returns:
PdfArtifactCollection - The collection of all artifacts of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
public final PdfXObjectCollection getXObjects()
Gets the collection of all XObjects of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
Returns:
PdfXObjectCollection - The collection of all XObjects of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
public final PdfAnnotationCollection getAnnotations()
Gets the collection of all annotations of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
Returns:
PdfAnnotationCollection - The collection of all annotations of this [PdfPage](../../com.groupdocs.watermark.contents/pdfpage).
public final Page getAsposePdfPage()
Returns: com.aspose.pdf.Page
public final PdfContent getContent()
Returns: PdfContent
public final Rectangle getPageRectangle()
Returns: Rectangle
public final void addArtifactWatermark(Watermark watermark)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark |
public final void addAnnotationWatermark(Watermark watermark, boolean isPrintOnly)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| isPrintOnly | boolean |
public void rasterize(int horizontalResolution, int verticalResolution, int imageFormat)
Converts page content into an image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| horizontalResolution | int | Horizontal image resolution. |
| verticalResolution | int | Vertical image resolution. |
| imageFormat | int | Image format. |
public final void addArtifactToCollection(Artifact artifact)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| artifact | com.aspose.pdf.Artifact |
public final void addAnnotationToCollection(Annotation annotation)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| annotation | com.aspose.pdf.Annotation |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.