public abstract class PdfShape extends ShapeSearchAdapter implements IRotatableTwoDObject
Provides base class for XObjects, Artifacts and Annotations.
| Modifier and Type | Method and Description |
|---|---|
PdfXImageAppearance |
extractImageAppearance() |
FormattedTextFragmentCollection |
getFormattedTextFragments()
Gets the collection of formatted text fragments of this
. |
FormattedTextFragmentCollection |
getFormattedTextFragmentsForSearch() |
abstract double |
getHeight()
Gets the height of the object.
|
PdfWatermarkableImage |
getImage()
Gets the image of this
. |
WatermarkableImage |
getImageForSearch() |
abstract com.aspose.pdf.XForm |
getOuterForm() |
abstract double |
getRotateAngle()
Gets the rotate angle of the object in degrees.
|
String |
getText()
Gets the text of this
. |
String |
getTextForSearch() |
abstract double |
getWidth()
Gets the width of the object.
|
abstract double |
getX()
Gets the x-coordinate of the object.
|
abstract double |
getY()
Gets the y-coordinate of the object.
|
void |
setFoundWatermarkImage(byte[] imageData) |
void |
setFoundWatermarkText(String value) |
void |
setImage(PdfWatermarkableImage value)
Sets the image of this
. |
void |
setText(String value)
Gets or sets the text of this
. |
getPageNumberpublic PdfXImageAppearance extractImageAppearance()
public final FormattedTextFragmentCollection getFormattedTextFragments()
PdfShape.PdfShape.public FormattedTextFragmentCollection getFormattedTextFragmentsForSearch()
getFormattedTextFragmentsForSearch in class ShapeSearchAdapterpublic abstract double getHeight()
Gets the height of the object.
getHeight in interface ITwoDObjectpublic final PdfWatermarkableImage getImage()
PdfShape.PdfShape.public WatermarkableImage getImageForSearch()
getImageForSearch in class ShapeSearchAdapterpublic abstract com.aspose.pdf.XForm getOuterForm()
public abstract double getRotateAngle()
Gets the rotate angle of the object in degrees.
getRotateAngle in interface IRotatableTwoDObjectpublic String getTextForSearch()
getTextForSearch in class ShapeSearchAdapterpublic abstract double getWidth()
Gets the width of the object.
getWidth in interface ITwoDObjectpublic abstract double getX()
Gets the x-coordinate of the object.
getX in interface ITwoDObjectpublic abstract double getY()
Gets the y-coordinate of the object.
getY in interface ITwoDObjectpublic void setFoundWatermarkImage(byte[] imageData)
setFoundWatermarkImage in class ShapeSearchAdapterpublic void setFoundWatermarkText(String value)
setFoundWatermarkText in class ShapeSearchAdapterpublic final void setImage(PdfWatermarkableImage value)
PdfShape.value - The image of this PdfShape.Copyright © 2026. All rights reserved.