方法
类公有方法
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