Class: PdfExtractor::PdfTk
- Inherits:
-
Object
- Object
- PdfExtractor::PdfTk
- Defined in:
- lib/pdf_extractor/pdf_tk.rb
Overview
Call PDFTk with params
Class Method Summary collapse
Class Method Details
.dump_data(file = nil) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/pdf_extractor/pdf_tk.rb', line 13 def self.dump_data(file = nil) return if file.nil? command = IO.popen("pdftk #{file} dump_data", 'r+') command.readlines end |
.dump_data_fields(file = nil) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/pdf_extractor/pdf_tk.rb', line 6 def self.dump_data_fields(file = nil) return if file.nil? command = IO.popen("pdftk #{file} dump_data_fields", 'r+') command.readlines end |