Methods
Class Public methods
accept?(blob) Link
pdf?(content_type) Link
pdftoppm_exists?() Link
pdftoppm_path() Link
Instance Public methods
preview(**options) Link
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 25 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