PdfXObject

Inheritance: java.lang.Object, com.groupdocs.watermark.search.ShapeSearchAdapter, com.groupdocs.watermark.contents.PdfShape

public abstract class PdfXObject extends PdfShape

Represents an XObject in a pdf document.

Learn more:

Methods

Method Description
getPage() Gets the parent page of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject).
getX() Gets the horizontal offset of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) from page left border in points.
getY() Gets the vertical offset of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) from page bottom border in points.
getWidth() Gets the width of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.
getHeight() Gets the height of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.
getRotateAngle() Gets the rotate angle of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in degrees.
getMatrix()

getPage()

public final PdfPage getPage()

Gets the parent page of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject).

Returns: PdfPage - The parent page of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject).

getX()

public double getX()

Gets the horizontal offset of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) from page left border in points.

Returns: double - The x-coordinate of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject).

getY()

public double getY()

Gets the vertical offset of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) from page bottom border in points.

Returns: double - The y-coordinate of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject).

getWidth()

public double getWidth()

Gets the width of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.

Returns: double - The width of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.

getHeight()

public double getHeight()

Gets the height of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.

Returns: double - The height of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in points.

getRotateAngle()

public double getRotateAngle()

Gets the rotate angle of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in degrees.

Returns: double - The rotate angle of this [PdfXObject](../../com.groupdocs.watermark.contents/pdfxobject) in degrees.

getMatrix()

public final Matrix getMatrix()

Returns: com.aspose.pdf.Matrix