Class: DragonflyPdf::Analysers::PdfProperties
- Inherits:
-
Object
- Object
- DragonflyPdf::Analysers::PdfProperties
- Defined in:
- lib/dragonfly_pdf/analysers/pdf_properties.rb
Instance Method Summary collapse
Instance Method Details
#call(content, spreads = false) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dragonfly_pdf/analysers/pdf_properties.rb', line 7 def call content, spreads=false pdf = PDF::Reader.new(content.file) { page_count: page_count(pdf, spreads), spread_count: spread_count(pdf, spreads), page_numbers: page_numbers(pdf, spreads), widths: widths(pdf, spreads), heights: heights(pdf, spreads), aspect_ratios: aspect_ratios(pdf, spreads), info: pdf.info } end |