Skip to content

Commit ab29b28

Browse files
mgiEli-Zaretskii
authored andcommitted
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)
1 parent 816c53c commit ab29b28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lisp/doc-view.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,8 @@ GOTO-PAGE-FN other than `doc-view-goto-page'."
21482148
(pcase-let ((`(,conv-function ,type ,extension)
21492149
(pcase doc-view-doc-type
21502150
('djvu (list #'doc-view-djvu->tiff-converter-ddjvu 'tiff "tif"))
2151+
((or 'ps 'postscript 'eps)
2152+
(list #'doc-view-ps->png-converter-ghostscript 'png "png"))
21512153
(_ (if (and (eq doc-view-pdf->png-converter-function
21522154
#'doc-view-pdf->png-converter-mupdf)
21532155
doc-view-mupdf-use-svg)

0 commit comments

Comments
 (0)