Artifact Class
Class represetns PDF Artifact object.
Inheritance Hierarchy

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 21.9.0
Syntax
public class Artifact : IDisposable

The Artifact type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyArtifactHorizontalAlignment
Horizontal alignment of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyArtifactVerticalAlignment
Vertical alignment of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyBottomMargin
Bottom margin of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyContents
Gets collection of artifact internal operators.
Public propertyCustomSubtype
Gets name of artifact subtype. May be used if artifact subtype is not standard subtype.
Public propertyCustomType
Gets name of artifact type. May be used if artifact type is non standard.
Public propertyForm
Gets XForm of the artifact (if XForm is used).
Public propertyImage
Gets image of the artifact (if presents).
Public propertyIsBackground
If true Artifact is placed behind page contents.
Public propertyLeftMargin
Left margin of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyLines
Lines of multiline text artifact.
Public propertyOpacity
Gets or sets opacity of the artifact. Possible values are in range 0..1.
Public propertyPosition
Gets or sets artifact position. If this property is specified, then margins and alignments are ignored.
Public propertyRectangle
Gets rectangle of the artifact.
Public propertyRightMargin
Right margin of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyRotation
Gets or sets artifact rotation angle.
Public propertySubtype
Gets artifact subtype. If artifact has non-standard subtype, name of the subtype may be read via CustomSubtype.
Public propertyText
Gets text of the artifact.
Public propertyTextState
Text state for artifact text.
Public propertyTopMargin
Top margin of artifact. If position is specified explicitly (in Position property) this value is ignored.
Public propertyType
Gets artifact type.
Methods
  NameDescription
Public methodCode exampleBeginUpdates
Start delated updates. Use this feature if you need make several changes to the same artifact to improve performance. Usually artifact operators are changed anytime when artifact property was changed. This causes changing of page contents everytime when artifact was changed. To avoid this effect put all artifact updates between StartUpdates/SaveUpdates calls. This allows to change page contents only once.
Public methodDispose
Dispose the artifact.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetValue
Gets custom value of artifact.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveValue
Remove custom value from the artifact.
Public methodSaveUpdates
Saves all updates in artifact which were made after BeginUpdates() call.
Public methodSetImage(Stream)
Sets image of the artifact.
Public methodSetImage(String)
Sets image of the artifact.
Public methodSetLinesAndState
Set text and text properties of the artifact. Allows to specify multiple lines.
Public methodSetPdfPage
Sets PDF page which is placed on the document page as artifact.
Public methodSetText
Sets text of the artifact.
Public methodSetTextAndState
Set text and text properties of the artifact.
Public methodSetValue
Sets custom value of artifact.
Public methodToString (Inherited from Object.)
See Also