Fix DocView with PostScript files

* lisp/doc-view.el (doc-view-set-up-single-converter): Produce PNG
from PS in a file with ".png" extension.  (Bug#72193)
This commit is contained in:
Manuel Giraud 2024-07-19 14:30:54 +02:00 committed by Eli Zaretskii
parent 816c53c2d9
commit ab29b28d4b

View file

@ -2148,6 +2148,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)