PdfArtifact
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
Methods
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() |
getPage()
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)
.
getText()
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)
.
setText(String value)
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) . |
getArtifactType()
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)
.
getArtifactSubtype()
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)
.
getOpacity()
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)
.
getX()
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)
.
getY()
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)
.
getRotateAngle()
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.
getWidth()
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.
getHeight()
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.
getAsposePdfArtifact()
public final Artifact getAsposePdfArtifact()
Returns: com.aspose.pdf.Artifact
getOuterForm()
public XForm getOuterForm()
Returns: com.aspose.pdf.XForm