方法
類別公開方法
accept?(blob) 鏈結
pdf?(content_type) 鏈結
pdftoppm_exists?() 鏈結
pdftoppm_path() 鏈結
執行個體公開方法
preview(**options) 鏈結
# 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