method

preview

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: PopplerPDFPreviewer
preview(**options) public

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 21
    def preview(**options)
      download_blob_to_tempfile do |input|
        draw_first_page_from input do |output|
          yield io: output, filename: "#{blob.filename.base}.png", content_type: "image/png", **options
        end
      end
    end
Register or log in to add new notes.