class ActiveStorage::Previewer::PopplerPDFPreviewer
def draw_first_page_from(file, &block)
def draw_first_page_from(file, &block) # use 72 dpi to match thumbnail dimensions of the PDF draw self.class.pdftoppm_path, "-singlefile", "-r", "72", "-png", file.path, &block end