Class: HexaPDF::DocumentUtils
- Inherits:
-
Object
- Object
- HexaPDF::DocumentUtils
- Defined in:
- lib/hexapdf/document_utils.rb
Overview
This class provides utility functions for PDF documents. It is available through the HexaPDF::Document#utils method.
Some functions can’t be attributed to a single “manager” object. For example, while embedding a file can be done within a HexaPDF::Type::Filespecification object, loading an image from a file as a PDF object doesn’t have such a place. Such functions are available via this class.
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(document) ⇒ DocumentUtils
constructor
Creates a new DocumentUtils object for the given PDF document.
Methods included from Files
Methods included from Images
Constructor Details
#initialize(document) ⇒ DocumentUtils
Creates a new DocumentUtils object for the given PDF document.
203 204 205 |
# File 'lib/hexapdf/document_utils.rb', line 203 def initialize(document) @document = document end |