Class ExternalObject
A reference to an external object in a content stream (spec §8.11).
External objects include Form XObjects, Image XObjects, and PostScript XObjects
referenced via the Do operator.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class ExternalObject
Constructors
ExternalObject(string, string, int, PdfRect)
Initializes an external object reference.
Declaration
public ExternalObject(string resourceKey, string subtype, int objectNumber, PdfRect boundingBox)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resourceKey | |
| string | subtype | |
| int | objectNumber | |
| PdfRect | boundingBox |
Properties
BoundingBox
Gets the bounding box of the external object in its own coordinate space.
Declaration
public PdfRect BoundingBox { get; }
Property Value
| Type | Description |
|---|---|
| PdfRect |
IsForm
Gets whether this external object is a form XObject.
Declaration
public bool IsForm { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsImage
Gets whether this external object is an image.
Declaration
public bool IsImage { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ObjectNumber
Gets the indirect object number of the external object.
Declaration
public int ObjectNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
ResourceKey
Gets the resource key used to reference this object (e.g. "Im1", "Fm1").
Declaration
public string ResourceKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
Subtype
Gets the subtype of the external object (Image, Form, or PS).
Declaration
public string Subtype { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |