GNU bug report logs -
#72193
31.0.50; DocView on Postscript with SVG support
Previous Next
Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>
Date: Fri, 19 Jul 2024 18:23:02 UTC
Severity: normal
Found in version 31.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
Hi Manuel & Eli,
>> Looking for pages into the cache with `doc-view-dired-cache', it
>> seems that DocView has produced PNG content into files with "svg"
>> extension. Emacs then tries to display SVG images with PNG content
>> and, obviously, failed.
>>
>> The following patch fixes the issue for me but maybe there is more than
>> meets the eye:
>>
>> diff --git a/lisp/doc-view.el b/lisp/doc-view.el
>> index f96b1bad886..e3539f8f886 100644
>> --- a/lisp/doc-view.el
>> +++ b/lisp/doc-view.el
>> @@ -2151,6 +2151,7 @@ doc-view-set-up-single-converter
>> (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)
>
> Tassilo, any comments or suggestions?
The patch is absolutely correct. That's been an oversight, I think.
Thanks Manuel!
Bye,
Tassilo
This bug report was last modified 1 year and 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.