]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix DocView with PostScript files
authorManuel Giraud <manuel@ledu-giraud.fr>
Fri, 19 Jul 2024 12:30:54 +0000 (14:30 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jul 2024 16:53:59 +0000 (18:53 +0200)
* lisp/doc-view.el (doc-view-set-up-single-converter): Produce PNG
from PS in a file with ".png" extension.  (Bug#72193)

(cherry picked from commit ab29b28d4ba58642f467fc15085ad8f7485fd90d)

lisp/doc-view.el

index 98807840884a21ada0b26930baff3730169832e0..38907c2f226b65c9b8f888597f624d0b55cf037a 100644 (file)
@@ -2151,6 +2151,8 @@ GOTO-PAGE-FN other than `doc-view-goto-page'."
   (pcase-let ((`(,conv-function ,type ,extension)
                (pcase doc-view-doc-type
                  ('djvu (list #'doc-view-djvu->tiff-converter-ddjvu 'tiff "tif"))
+                 ((or 'ps 'postscript 'eps)
+                  (list #'doc-view-ps->png-converter-ghostscript 'png "png"))
                  (_ (if (and (eq doc-view-pdf->png-converter-function
                                  #'doc-view-pdf->png-converter-mupdf)
                              doc-view-mupdf-use-svg)