Class: PDF::Extract::Document
- Inherits:
-
Object
- Object
- PDF::Extract::Document
- Defined in:
- lib/pdf/extract/document.rb
Constant Summary collapse
- PAGE_ANNOTATIONS_KEY =
:Annots
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
- #annotations ⇒ Object
- #fields ⇒ Object
-
#initialize(path:) ⇒ Document
constructor
A new instance of Document.
Constructor Details
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
7 8 9 |
# File 'lib/pdf/extract/document.rb', line 7 def document @document end |
Instance Method Details
#annotations ⇒ Object
13 14 15 16 17 |
# File 'lib/pdf/extract/document.rb', line 13 def annotations reference_resoler.lookup(annotation_references).map { |h| Annotation.new(h) } end |