Method: PDF::Reader::FormXObject#font_objects
- Defined in:
- lib/pdf/reader/form_xobject.rb
#font_objects ⇒ Object
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.
: () -> untyped
48 49 50 51 52 53 |
# File 'lib/pdf/reader/form_xobject.rb', line 48 def font_objects raw_fonts = @objects.deref_hash(fonts) ::Hash[raw_fonts.map { |label, font| [label, PDF::Reader::Font.new(@objects, @objects.deref_hash(font) || {})] }] end |