Method: PDF::Reader::Resources#fonts
- Defined in:
- lib/pdf/reader/resources.rb
#fonts ⇒ Object
Returns a Hash of fonts that are available to this page
NOTE: this method de-serialise objects from the underlying PDF
with no caching. You will want to cache the results instead
of calling it over and over.
: () -> Hash[Symbol, untyped]
36 37 38 |
# File 'lib/pdf/reader/resources.rb', line 36 def fonts @objects.deref_hash!(@resources[:Font]) || {} end |