method
draw_first_page_from
v6.1.3.1 -
Show latest stable
- Class:
ActiveStorage::Previewer::PopplerPDFPreviewer
draw_first_page_from(file, &block)private
No documentation available.
# 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