Module: PdfConvertToBmpHelper
- Included in:
- OnlyofficePdfParser::PdfStructure
- Defined in:
- lib/onlyoffice_pdf_parser/pdf_structure/pdf_convert_to_bmp_helper.rb
Overview
Helper methods to convert pdf to bmp
Instance Method Summary collapse
-
#fetch_bmp_binary ⇒ Object
Fill @pages_bmp with data.
Instance Method Details
#fetch_bmp_binary ⇒ Object
Fill @pages_bmp with data
6 7 8 9 10 11 12 13 |
# File 'lib/onlyoffice_pdf_parser/pdf_structure/pdf_convert_to_bmp_helper.rb', line 6 def fetch_bmp_binary temp_path = OnlyofficePdfParser::FileHelper.generate_temp_name `convert "#{@file_path}" #{temp_path}` files = multipage_files(temp_path) files.each do |file| @pages_in_bmp << File.binread(file) end end |