public class Artifact extends Object implements com.aspose.ms.System.IDisposable
Modifier and Type | Class and Description |
---|---|
static class |
Artifact.ArtifactSubtype
Enumeration of possible artifacts subtype.
|
static class |
Artifact.ArtifactType
Enumeration of possuble artifact types.
|
static class |
Artifact.HorizontalAlignment
Descibes horizontal alignment of artifact on the page.
|
static class |
Artifact.VerticalAlignment
Descibes horizontal alignment of artifact on the page.
|
Constructor and Description |
---|
Artifact(ArtifactCollection owner,
Resources resources,
Matrix matrix,
com.aspose.ms.System.Collections.ArrayList _contents,
com.aspose.pdf.engine.data.IPdfDictionary _properties)
This constructor is used when artifact is read from the page.
|
Artifact(int type,
int subType)
Constructor of artifact with specified type and subtype
|
Artifact(String type,
String subType)
Constructor of artifact with specified type and subtype
|
Modifier and Type | Method and Description |
---|---|
void |
beginUpdates()
Start delated updates.
|
void |
dispose() |
int |
getArtifactHorizontalAlignment()
Horizontal alignment of artifact.
|
int |
getArtifactVerticalAlignment()
Vertical alignment of artifact.
|
double |
getBottomMargin()
Bottom margin of artifact.
|
com.aspose.ms.System.Collections.IList |
getContentsInternal()
Gets collection of artifact internal operators.
|
String |
getCustomSubtype()
Gets name of artifact subtype.
|
String |
getCustomType()
Gets name of artifact type.
|
XForm |
getForm()
Gets XForm of the artifact (if XForm is used).
|
XImage |
getImage()
Gets image of the artifact (if presents).
|
double |
getLeftMargin()
Left margin of artifact.
|
double |
getOpacity()
Gets or sets opacity of the artifact.
|
Point |
getPosition()
Gets or sets artifact position.
|
Rectangle |
getRectangle()
Gets rectangle of the artifact.
|
double |
getRightMargin()
Right margin of artifact.
|
double |
getRotation()
Gets articat rotation angle.
|
int |
getSubtype()
Gets artifact subtype.
|
String |
getText()
Gets text of the artifact.
|
double |
getTopMargin()
Top margin of artifact.
|
int |
getType()
Gets artifact type.
|
String |
getValue(String name)
Gets custom value of artifact.
|
void |
removeValue(String name)
Remove custom value from the artifact.
|
void |
saveUpdates()
Saves all updates in artifact which were made after BeginUpdates() call.
|
void |
setArtifactHorizontalAlignment(int value)
Sets horizontal alignment of the artifact.
|
void |
setArtifactVerticalAlignment(int value)
Sets vertical alignment of the artifact.
|
void |
setBottomMargin(double value)
Sets bottom margin of artifact.
|
void |
setCustomSubtype(String value) |
void |
setCustomType(String value) |
void |
setImage(com.aspose.ms.System.IO.Stream imageStream)
Sets image of the artifact.
|
void |
setImage(String imageName)
Sets image of the artifact.
|
void |
setLeftMargin(double value)
Set left margin of the artifact.
|
void |
setOpacity(double value)
Sets opacity of the artifact.
|
void |
SetPdfPage(Page page)
Sets PDF page which is placed on the document page as artifact.
|
void |
setPosition(Point value) |
void |
setRightMargin(double value)
Sets right margin of the artifact.
|
void |
setRotation(double value)
Sets artifact rotation angle.
|
void |
setSubtype(int value) |
void |
setText(FormattedText formattedText)
Sets text of the artifact.
|
void |
setText(String value)
Sets text of the artifact.
|
void |
setTopMargin(double value)
Sets top margin of the artifact.
|
void |
setType(int value)
Set tpye of the artifact.
|
void |
setValue(String name,
String value)
Sets custom value of artifact.
|
public Artifact(ArtifactCollection owner, Resources resources, Matrix matrix, com.aspose.ms.System.Collections.ArrayList _contents, com.aspose.pdf.engine.data.IPdfDictionary _properties)
owner
- ArtifactCollection objectresources
- Resources object_contents
- Collection of Operators_properties
- IPdfDictionary objectpublic Artifact(String type, String subType)
type
- Name of artifact type.subType
- NAme of artifact subtype.public Artifact(int type, int subType)
type
- Artifact type.subType
- Artifact subtype.public String getCustomType()
public void setCustomType(String value)
public String getCustomSubtype()
public void setCustomSubtype(String value)
public int getType()
public void setType(int value)
value
- New artifact type.public int getSubtype()
public void setSubtype(int value)
public com.aspose.ms.System.Collections.IList getContentsInternal()
public XForm getForm()
public Rectangle getRectangle()
public Point getPosition()
public void setPosition(Point value)
public double getRightMargin()
public void setRightMargin(double value)
value
- New value of artifact right margin.public double getLeftMargin()
public void setLeftMargin(double value)
value
- New left margin of the artifact.public double getTopMargin()
public void setTopMargin(double value)
value
- New value of artifact top margin.public double getBottomMargin()
public void setBottomMargin(double value)
value
- New value of bottom margin of the artifact.public int getArtifactHorizontalAlignment()
public void setArtifactHorizontalAlignment(int value)
value
- New value of horizontal alignment.public int getArtifactVerticalAlignment()
public void setArtifactVerticalAlignment(int value)
value
- New vertical alignment of the artifact.public double getRotation()
public void setRotation(double value)
value
- New value of rotation angle.public String getText()
public void setText(String value)
value
- New text value.public XImage getImage()
public double getOpacity()
public void setOpacity(double value)
value
- New value of the opacity.public void setText(FormattedText formattedText)
formattedText
- FormattedText object which contains artifact text.public void setImage(com.aspose.ms.System.IO.Stream imageStream)
imageStream
- Stream which contains image data.public void setImage(String imageName)
imageName
- Name of image file.public void SetPdfPage(Page page)
page
- Value of page.public void dispose()
dispose
in interface com.aspose.ms.System.IDisposable
public String getValue(String name)
name
- Name of value.public void setValue(String name, String value)
name
- Name of custom value.value
- Custom value.public void removeValue(String name)
name
- Name of custom value to be removed.public void beginUpdates()
public void saveUpdates()
Copyright © 2020 Aspose. All Rights Reserved.