class HexaPDF::Type::Form
Parent | HexaPDF::Stream |
---|
Represents a form XObject of a PDF document.
See: PDF1.7 s8.10
Attributes
Returns the path to the PDF file that was used when creating the form object.
This value is only set when the form object was created by using the image loading facility (i.e. when treating a single page PDF file as image) and not when the form object was created in any other way (i.e. manually created or already part of a loaded PDF file).
Public Instance Methods
Returns the rectangle defining the bounding box of the form.
Returns the canvas for the form XObject.
The canvas object is cached once it is created so that its graphics state is correctly retained without the need for parsing its contents.
Note that a canvas can only be retrieved for initially empty form XObjects!
Processes the content stream of the form XObject with the given processor object.
The original_resources
argument has to be set to a page's
resources if this form XObject is processed as part of this page.
Returns the resource dictionary which is automatically created if it doesn't exist.