Class: PdflibMini::Handle::Pdf::Document
- Defined in:
- lib/pdflib_mini/handle/pdf/document.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#close_pdi_document ⇒ Object
10.1 Document Functions close_pdi_document(int doc).
-
#initialize(doc, p, filename) ⇒ Document
constructor
A new instance of Document.
-
#open_pdi_page(*args, &block) ⇒ Object
10.2 Page Functions int open_pdi_page(int doc, int pagenumber, string optlist).
-
#pcos_get_number(*args) ⇒ Object
10.4 pCOS Functions double pcos_get_number(long doc, string path).
-
#pcos_get_stream(*args) ⇒ Object
10.4 pCOS Functions string pcos_get_stream(long doc, string optlist, string path).
-
#pcos_get_string(*args) ⇒ Object
10.4 pCOS Functions string pcos_get_string(long doc, string path).
-
#process_pdi(*args) ⇒ Object
10.3 Other PDI Processing int process_pdi(int doc, int page, string optlist).
Methods inherited from Base
Constructor Details
#initialize(doc, p, filename) ⇒ Document
Returns a new instance of Document.
7 8 9 10 11 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 7 def initialize(doc, p, filename) super(doc) @p = p @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 5 def filename @filename end |
Instance Method Details
#close_pdi_document ⇒ Object
10.1 Document Functions close_pdi_document(int doc)
15 16 17 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 15 def close_pdi_document @p.close_pdi_document(self) end |
#open_pdi_page(*args, &block) ⇒ Object
10.2 Page Functions int open_pdi_page(int doc, int pagenumber, string optlist)
21 22 23 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 21 def open_pdi_page(*args, &block) @p.open_pdi_page(self, *args, &block) end |
#pcos_get_number(*args) ⇒ Object
10.4 pCOS Functions double pcos_get_number(long doc, string path)
33 34 35 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 33 def pcos_get_number(*args) @p.pcos_get_number(self, *args) end |
#pcos_get_stream(*args) ⇒ Object
10.4 pCOS Functions string pcos_get_stream(long doc, string optlist, string path)
45 46 47 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 45 def pcos_get_stream(*args) @p.pcos_get_stream(self, *args) end |
#pcos_get_string(*args) ⇒ Object
10.4 pCOS Functions string pcos_get_string(long doc, string path)
39 40 41 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 39 def pcos_get_string(*args) @p.pcos_get_string(self, *args) end |
#process_pdi(*args) ⇒ Object
10.3 Other PDI Processing int process_pdi(int doc, int page, string optlist)
27 28 29 |
# File 'lib/pdflib_mini/handle/pdf/document.rb', line 27 def process_pdi(*args) @p.process_pdi(self, *args) end |