Class: ActiveStorage::HotCell::Client::Previewers::Pdf::Poppler

Inherits:
Previewer::PopplerPDFPreviewer
  • Object
show all
Includes:
ActiveStorage::HotCell::Client::Previewers::Previewing
Defined in:
lib/active_storage/hot_cell/client/previewers/pdf/poppler.rb

Overview

The Poppler sibling of Mutool, for an application whose image carries pdftoppm rather than mutool — the previewer Rails' default chain reaches first.

Class Method Summary collapse

Methods included from ActiveStorage::HotCell::Client::Previewers::Previewing

included, #preview

Class Method Details

.accept?(blob) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/active_storage/hot_cell/client/previewers/pdf/poppler.rb', line 20

def self.accept?(blob)
  pdf? blob.content_type
end