PdfArtifact
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.search.ShapeSearchAdapter, com.groupdocs.watermark.contents.PdfShape
public class PdfArtifact extends PdfShape
Represents an artifact in a pdf content.
Lean more
| Method | Description |
|---|---|
| getPage() | Gets the parent page of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| getText() | Gets the text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| setText(String value) | Sets the text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| getArtifactType() | Gets the type of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| getArtifactSubtype() | Gets the subtype of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| getOpacity() | Gets the opacity of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
| getX() | Gets the horizontal offset of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) from page left border in points. |
| getY() | Gets the vertical offset of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) from page bottom border in points. |
| getRotateAngle() | Gets the rotate angle of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in degrees. |
| getWidth() | Gets the width of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points. |
| getHeight() | Gets the height of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points. |
| getAsposePdfArtifact() | |
| getOuterForm() |
public final PdfPage getPage()
Gets the parent page of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Returns:
PdfPage - The parent page of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public String getText()
Gets the text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Returns:
java.lang.String - The text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public void setText(String value)
Sets the text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The text of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact). |
public final int getArtifactType()
Gets the type of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Returns:
int - The type of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public final int getArtifactSubtype()
Gets the subtype of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Returns:
int - The subtype of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public final double getOpacity()
Gets the opacity of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
Possible values are in range [0, 1].
Returns:
double - The opacity of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public double getX()
Gets the horizontal offset of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) from page left border in points.
Returns:
double - The x-coordinate of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public double getY()
Gets the vertical offset of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) from page bottom border in points.
Returns:
double - The y-coordinate of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact).
public double getRotateAngle()
Gets the rotate angle of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in degrees.
Returns:
double - The rotate angle of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in degrees.
public double getWidth()
Gets the width of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points.
Returns:
double - The width of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points.
public double getHeight()
Gets the height of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points.
Returns:
double - The height of this [PdfArtifact](../../com.groupdocs.watermark.contents/pdfartifact) in points.
public final Artifact getAsposePdfArtifact()
Returns: com.aspose.pdf.Artifact
public XForm getOuterForm()
Returns: com.aspose.pdf.XForm
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.