PdfShape

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

All Implemented Interfaces: com.groupdocs.watermark.search.IRotatableTwoDObject

public abstract class PdfShape extends ShapeSearchAdapter implements IRotatableTwoDObject

Provides base class for XObjects, Artifacts and Annotations.

Methods

Method Description
getText() Gets the text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).
setText(String value) Gets or sets the text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).
getFormattedTextFragments() Gets the collection of formatted text fragments of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).
getImage() Gets the image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).
setImage(PdfWatermarkableImage value) Sets the image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).
getX() Gets the x-coordinate of the object.
getY() Gets the y-coordinate of the object.
getWidth() Gets the width of the object.
getHeight() Gets the height of the object.
getRotateAngle() Gets the rotate angle of the object in degrees.
getOuterForm()
extractImageAppearance()
getTextForSearch()
setFoundWatermarkText(String value)
getFormattedTextFragmentsForSearch()
getImageForSearch()
setFoundWatermarkImage(byte[] imageData)

getText()

public String getText()

Gets the text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

Returns: java.lang.String - The text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

setText(String value)

public void setText(String value)

Gets or sets the text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

Parameters:

Parameter Type Description
value java.lang.String The text of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

getFormattedTextFragments()

public final FormattedTextFragmentCollection getFormattedTextFragments()

Gets the collection of formatted text fragments of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

Returns: FormattedTextFragmentCollection - The collection of formatted text fragments of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

getImage()

public final PdfWatermarkableImage getImage()

Gets the image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

Returns: PdfWatermarkableImage - The image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

setImage(PdfWatermarkableImage value)

public final void setImage(PdfWatermarkableImage value)

Sets the image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

Parameters:

Parameter Type Description
value PdfWatermarkableImage The image of this [PdfShape](../../com.groupdocs.watermark.contents/pdfshape).

getX()

public abstract double getX()

Gets the x-coordinate of the object.

Returns: double - The x-coordinate of the object.

getY()

public abstract double getY()

Gets the y-coordinate of the object.

Returns: double - The y-coordinate of the object.

getWidth()

public abstract double getWidth()

Gets the width of the object.

Returns: double - The width of the object.

getHeight()

public abstract double getHeight()

Gets the height of the object.

Returns: double - The height of the object.

getRotateAngle()

public abstract double getRotateAngle()

Gets the rotate angle of the object in degrees.

Returns: double - The rotate angle of the object in degrees.

getOuterForm()

public abstract XForm getOuterForm()

Returns: com.aspose.pdf.XForm

extractImageAppearance()

public PdfXImageAppearance extractImageAppearance()

Returns: com.groupdocs.watermark.internal.PdfXImageAppearance

getTextForSearch()

public String getTextForSearch()

Returns: java.lang.String

setFoundWatermarkText(String value)

public void setFoundWatermarkText(String value)

Parameters:

Parameter Type Description
value java.lang.String

getFormattedTextFragmentsForSearch()

public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()

Returns: FormattedTextFragmentCollection

getImageForSearch()

public WatermarkableImage getImageForSearch()

Returns: WatermarkableImage

setFoundWatermarkImage(byte[] imageData)

public void setFoundWatermarkImage(byte[] imageData)

Parameters:

Parameter Type Description
imageData byte[]