Flowdock
method

draw_first_page_from

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: PopplerPDFPreviewer
draw_first_page_from(file, &block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 30
      def draw_first_page_from(file, &block)
        # use 72 dpi to match thumbnail dimensions of the PDF
        draw self.class.pdftoppm_path, "-singlefile", "-cropbox", "-r", "72", "-png", file.path, &block
      end
Register or log in to add new notes.