A form XObject is a PDF content stream that is a self-contained description of any sequence of graphics objects (including path objects, text objects, and sampled images).
A form XObject may be painted multiple times—either on several pages or at several locations on the same page—and produces the same results each time, subject only to the graphics state at the time it is invoked.
public sealed class PdfForm : PdfExternalObject
Public NotInheritable Class PdfForm Inherits PdfExternalObject
Initializes a new instance of the PdfForm class.
public PdfForm(PdfDocument document, PdfSize size)
Public Sub New(document As PdfDocument, size As PdfSize)
document is null.
(Required) The form XObject's bounding box, used to clip the form XObject and to determine its size for caching.
The form XObject's bounding box, used to clip the form XObject and to determine its size for caching.
Value is null.
Gets the content of the PdfForm.
Returns null if the PdfForm doesn't have an associated resource dictionary. In that case use either GetContent(PdfContent) to retrieve the read-only content of the PdfForm with PdfContentResources (fonts, images, etc.) resolved from the specified PdfContent or SetResources(PdfContent) method to set PdfContentResources (fonts, images, etc.) from the specified PdfContent to this PdfForm before retrieving the Content property.
A PdfForm stores its rendering data in a content stream (whose data consists of a sequence of instructions describing the graphical elements to be painted) and an associated resource dictionary. For more information on how PdfForms store graphics data, see 7.8, "Content Streams and Resources".
(Optional) An array of six numbers specifying the form matrix, which maps form space into user space (see 8.3.4, "Transformation Matrices"). Default value: the identity matrix [1 0 0 1 0 0].
An array of six numbers specifying the form matrix, which maps form space into user space.
public PdfContent GetContent(PdfContent resourcesProvider)
Public Function GetContent(resourcesProvider As PdfContent) As PdfContent
SetBoundingBox(Double, Double, Double, Double)
Sets the BoundingBox.
public void SetBoundingBox(double left, double bottom, double right, double top)
Public Sub SetBoundingBox(left As Double, bottom As Double, right As Double, top As Double)
public void SetResources(PdfContent resourcesProvider)
Public Sub SetResources(resourcesProvider As PdfContent)
(Inherited from PdfExternalObject)
(Inherited from PdfContentResource)
(Optional; PDF 1.4) A metadata stream containing metadata for the component.
(Inherited from PdfObject)