diff --git a/lisp/doc-view.el b/lisp/doc-view.el index a2ad4660f73..210b7ace7d6 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1280,7 +1280,8 @@ The test is performed using `doc-view-pdfdraw-program'." (expand-file-name doc-view-epub-user-stylesheet))))))) (doc-view-start-process - "pdf->png" doc-view-pdfdraw-program + (concat "pdf->" (symbol-name doc-view--image-type)) + doc-view-pdfdraw-program `(,@(doc-view-pdfdraw-program-subcommand) ,@options ,pdf