PdfAnnotation
Inheritance: java.lang.Object, com.groupdocs.watermark.search.ShapeSearchAdapter, com.groupdocs.watermark.contents.PdfShape
public class PdfAnnotation extends PdfShape
Represents an annotation in a pdf document.
Learn more:
Fields
| Field | Description |
|---|---|
| NormalAppearanceKey |
Methods
| Method | Description |
|---|---|
| getPage() | Gets the parent page of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation). |
| getAnnotationType() | Gets the type of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation). |
| getX() | Gets the horizontal offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from page left border in points. |
| getY() | Gets the vertical offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from worksheet bottom border in points. |
| getRotateAngle() | Gets the rotate angle of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in degrees. |
| getWidth() | Gets the width of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points. |
| getHeight() | Gets the height of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points. |
| getAsposePdfAnnotation() | |
| getOuterForm() |
NormalAppearanceKey
public static final String NormalAppearanceKey
getPage()
public final PdfPage getPage()
Gets the parent page of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation).
Returns:
PdfPage - The parent page of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation).
getAnnotationType()
public final int getAnnotationType()
Gets the type of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation).
Returns:
int - The type of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation).
getX()
public double getX()
Gets the horizontal offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from page left border in points.
Returns:
double - The horizontal offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from page left border in points.
getY()
public double getY()
Gets the vertical offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from worksheet bottom border in points.
Returns:
double - The vertical offset of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) from worksheet bottom border in points.
getRotateAngle()
public double getRotateAngle()
Gets the rotate angle of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in degrees.
Returns:
double - The rotate angle of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in degrees.
getWidth()
public double getWidth()
Gets the width of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points.
Returns:
double - The width of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points.
getHeight()
public double getHeight()
Gets the height of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points.
Returns:
double - The height of this [PdfAnnotation](../../com.groupdocs.watermark.contents/pdfannotation) in points.
getAsposePdfAnnotation()
public final Annotation getAsposePdfAnnotation()
Returns: com.aspose.pdf.Annotation
getOuterForm()
public XForm getOuterForm()
Returns: com.aspose.pdf.XForm