Class PDF::Reader::FormXObject
In: lib/pdf/reader/form_xobject.rb
Parent: Object

High level representation of a single PDF form xobject. Form xobjects are contained pieces of content that can be inserted onto multiple pages. They‘re generally used as a space efficient way to store repetative content (like logos, header, footers, etc).

This behaves and looks much like a limited PDF::Reader::Page class.

Methods

font_objects   new   raw_content   walk  

Included Modules

ResourceMethods

Attributes

xobject  [R] 

Public Class methods

Public Instance methods

return a hash of fonts used on this form.

The keys are the font labels used within the form content stream.

The values are a PDF::Reader::Font instances that provide access to most available metrics for each font.

returns the raw content stream for this page. This is plumbing, nothing to see here unless you‘re a PDF nerd like me.

processes the raw content stream for this form in sequential order and passes callbacks to the receiver objects.

See the comments on PDF::Reader::Page#walk for more detail.

[Validate]