@Deprecated public class PdfPage extends DocumentPart
Represents pdf document page.
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationWatermark(Watermark watermark)
Deprecated.
Adds an annotation watermark to this
PdfPage . |
void |
addAnnotationWatermark(Watermark watermark,
boolean isPrintOnly)
Deprecated.
Adds an annotation watermark to this
PdfPage . |
void |
addArtifactWatermark(Watermark watermark)
Deprecated.
Adds an artifact watermark to this
PdfPage . |
PdfAnnotationCollection |
getAnnotations()
Deprecated.
Gets the collection of all annotations of this
PdfPage . |
PdfArtifactCollection |
getArtifacts()
Deprecated.
Gets the collection of all artifacts of this
PdfPage . |
double |
getHeight()
Deprecated.
Gets the height of this
PdfPage in points. |
double |
getWidth()
Deprecated.
Gets the width of this
PdfPage in points. |
PdfXObjectCollection |
getXObjects()
Deprecated.
Gets the collection of all XObjects of this
PdfPage . |
void |
rasterize(int horizontalResolution,
int verticalResolution,
int imageFormat)
Deprecated.
Converts page content into an image.
|
addWatermark, findImages, findImages, findWatermarks, findWatermarks
public final double getWidth()
Gets the width of this PdfPage
in points.
PdfPage
in points.public final double getHeight()
Gets the height of this PdfPage
in points.
PdfPage
in points.public final PdfArtifactCollection getArtifacts()
Gets the collection of all artifacts of this PdfPage
.
PdfPage
.public final PdfXObjectCollection getXObjects()
Gets the collection of all XObjects of this PdfPage
.
PdfPage
.public final PdfAnnotationCollection getAnnotations()
Gets the collection of all annotations of this PdfPage
.
PdfPage
.public final void addArtifactWatermark(Watermark watermark)
Adds an artifact watermark to this PdfPage
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The watermark to add to the page.public final void addAnnotationWatermark(Watermark watermark, boolean isPrintOnly)
Adds an annotation watermark to this PdfPage
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The watermark to add to the page.isPrintOnly
- The value indicating whether annotation will be printed,
but not displayed in pdf viewing application.public final void addAnnotationWatermark(Watermark watermark)
Adds an annotation watermark to this PdfPage
.
This method assumes that watermark offset and size are measured in points (if they are assigned).
watermark
- The watermark to add to the page.public void rasterize(int horizontalResolution, int verticalResolution, int imageFormat)
Converts page content into an image.
horizontalResolution
- Horizontal image resolution.verticalResolution
- Vertical image resolution.imageFormat
- Image format.Copyright © 2020. All rights reserved.