PdfPage
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
public class PdfPage extends ContentPart
Represents pdf document page.
Constructors
| Constructor | Description |
|---|---|
| PdfPage(PdfContent parent, StrategyManager |
Methods
| 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) |
PdfPage(PdfContent parent, StrategyManager strategyManager, Page asposePdfPage)
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 |
getWidth()
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.
getHeight()
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.
getArtifacts()
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).
getXObjects()
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).
getAnnotations()
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).
getAsposePdfPage()
public final Page getAsposePdfPage()
Returns: com.aspose.pdf.Page
getContent()
public final PdfContent getContent()
Returns: PdfContent
getPageRectangle()
public final Rectangle getPageRectangle()
Returns: com.aspose.pdf.Rectangle
addArtifactWatermark(Watermark watermark)
public final void addArtifactWatermark(Watermark watermark)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark |
addAnnotationWatermark(Watermark watermark, boolean isPrintOnly)
public final void addAnnotationWatermark(Watermark watermark, boolean isPrintOnly)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| isPrintOnly | boolean |
rasterize(int horizontalResolution, int verticalResolution, int imageFormat)
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. |
addArtifactToCollection(Artifact artifact)
public final void addArtifactToCollection(Artifact artifact)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| artifact | com.aspose.pdf.Artifact |
addAnnotationToCollection(Annotation annotation)
public final void addAnnotationToCollection(Annotation annotation)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| annotation | com.aspose.pdf.Annotation |