[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.FormXObject

Class FormXObject

Namespace
GrapeCity.Documents.Pdf.Graphics
Assembly
GcDocs.Pdf.dll

Represents a PDF Form XObject.

public class FormXObject : ContentStream, IXObject, IContentItem, IPdfDict
Inheritance
object
FormXObject
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

FormXObject(GcPdfDocument, Page)

Initializes a new instance of the FormXObject class using a specified page as the source.

Note that Matrix and Bounds properties are automatically adjusted to take into account the UserUnit property of the source page.

public FormXObject(GcPdfDocument doc, Page page)

Parameters

doc GcPdfDocument

The target GcPdfDocument where the new FormXObject will be used.

page Page

The source Page the content of which is copied to the FormXObject. The source page can belong to another document.

FormXObject(GcPdfDocument, RectangleF)

Initializes a new instance of the FormXObject class.

public FormXObject(GcPdfDocument doc, RectangleF bounds)

Parameters

doc GcPdfDocument

The GcPdfDocument in which the new FormXObject will be used.

bounds System.Drawing.RectangleF

The bounds of the FormXObject.

Properties

AssociatedFiles

Gets the list of embedded files associated with this FormXObject.

public AssociatedFiles AssociatedFiles { get; }

Property Value

AssociatedFiles

Bounds

Gets or sets the bounds of this FormXObject.

public RectangleF Bounds { get; set; }

Property Value

System.Drawing.RectangleF

Doc

Gets the GcPdfDocument owning this object.

public GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

Graphics

Gets an instance of GcPdfGraphics that can be used to generate content of this FormXObject.

public GcPdfGraphics Graphics { get; }

Property Value

GcPdfGraphics

HasAssociatedFiles

Gets a value indicating whether the AssociatedFiles collection is not empty.

public bool HasAssociatedFiles { get; }

Property Value

bool

Layer

Gets or sets an object that specifies the layer to which this FormXObject belongs.

This can be either an OptionalContentGroup or an OptionalContentMembership.

public OptionalContentIdentifier Layer { get; set; }

Property Value

OptionalContentIdentifier

Matrix

Gets or sets the System.Numerics.Matrix3x2 that maps form space into user space.

public Matrix3x2 Matrix { get; set; }

Property Value

System.Numerics.Matrix3x2

Methods

CreateList(GcPdfDocument, IList<Page>)

Creates a list of FormXObject objects using a specified list of pages as the source.

Note that Matrix and Bounds properties are automatically adjusted to take into account the UserUnit property of the source page.

public static FormXObject[] CreateList(GcPdfDocument doc, IList<Page> pages)

Parameters

doc GcPdfDocument

The target GcPdfDocument where the new FormXObject objects will be used.

pages System.Collections.Generic.IList<T><Page>

The list of the source Page objects. These pages can belong to another document.

Returns

FormXObject[]

The list of created FormXObject objects.

GetUsedFonts()

Gets the list of fonts referenced by this FormXObject.

public ICollection<Font> GetUsedFonts()

Returns

System.Collections.Generic.ICollection<T><Font>

The list of fonts referenced by this FormXObject.