* DocView, mupdf and librsvg
@ 2023-01-07 12:07 Manuel Giraud
2023-01-07 12:24 ` Stephen Berman
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Giraud @ 2023-01-07 12:07 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Hi,
From some month now, to read PDF, DocView has switched from producing
PNG files for its page cache to producing SVG files. I think it is a
good idea but I have found a bug (that is outside the scope of Emacs
that's why I'm reporting here): mutool could generate SVG files that
librsvg is not able to read back.
FTR, I'm using mupdf 1.21.1 and librsvg 2.54.5. I've attached a sample
PDF and the produced SVG if you want to test on your setting.
I think it would be wise to defaults `doc-view-mupdf-use-svg' to nil in
the upcoming Emacs 29.
[-- Attachment #2: doc.pdf --]
[-- Type: application/pdf, Size: 6573 bytes --]
[-- Attachment #3: page-1.svg --]
[-- Type: image/svg, Size: 2427 bytes --]
[-- Attachment #4: Type: text/plain, Size: 18 bytes --]
--
Manuel Giraud
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DocView, mupdf and librsvg
2023-01-07 12:07 DocView, mupdf and librsvg Manuel Giraud
@ 2023-01-07 12:24 ` Stephen Berman
2023-01-07 13:31 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2023-01-07 12:24 UTC (permalink / raw)
To: Manuel Giraud; +Cc: emacs-devel
On Sat, 07 Jan 2023 13:07:22 +0100 Manuel Giraud <manuel@ledu-giraud.fr> wrote:
> Hi,
>
> From some month now, to read PDF, DocView has switched from producing
> PNG files for its page cache to producing SVG files. I think it is a
> good idea but I have found a bug (that is outside the scope of Emacs
> that's why I'm reporting here): mutool could generate SVG files that
> librsvg is not able to read back.
>
> FTR, I'm using mupdf 1.21.1 and librsvg 2.54.5. I've attached a sample
> PDF and the produced SVG if you want to test on your setting.
Yes, this is apparently a bug in how mutool processes "<" since at least
version 1.21.0, see also bug#60308.
> I think it would be wise to defaults `doc-view-mupdf-use-svg' to nil in
> the upcoming Emacs 29.
Steve Berman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DocView, mupdf and librsvg
2023-01-07 12:24 ` Stephen Berman
@ 2023-01-07 13:31 ` Eli Zaretskii
2023-01-07 15:03 ` Manuel Giraud
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-01-07 13:31 UTC (permalink / raw)
To: Stephen Berman; +Cc: manuel, emacs-devel
> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: "emacs-devel" <emacs-devel@gnu.org>
> Date: Sat, 07 Jan 2023 13:24:42 +0100
>
> On Sat, 07 Jan 2023 13:07:22 +0100 Manuel Giraud <manuel@ledu-giraud.fr> wrote:
>
> > Hi,
> >
> > From some month now, to read PDF, DocView has switched from producing
> > PNG files for its page cache to producing SVG files. I think it is a
> > good idea but I have found a bug (that is outside the scope of Emacs
> > that's why I'm reporting here): mutool could generate SVG files that
> > librsvg is not able to read back.
> >
> > FTR, I'm using mupdf 1.21.1 and librsvg 2.54.5. I've attached a sample
> > PDF and the produced SVG if you want to test on your setting.
>
> Yes, this is apparently a bug in how mutool processes "<" since at least
> version 1.21.0, see also bug#60308.
>
> > I think it would be wise to defaults `doc-view-mupdf-use-svg' to nil in
> > the upcoming Emacs 29.
I think instead of changing the default unconditionally, we should
probe the version of mutool, and change it only for affected versions.
Would someone like to propose a patch along those lines?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DocView, mupdf and librsvg
2023-01-07 13:31 ` Eli Zaretskii
@ 2023-01-07 15:03 ` Manuel Giraud
2023-01-08 10:30 ` Stephen Berman
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Giraud @ 2023-01-07 15:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Stephen Berman, emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
[...]
> I think instead of changing the default unconditionally, we should
> probe the version of mutool, and change it only for affected versions.
> Would someone like to propose a patch along those lines?
I could work on one but we might need a version number where this bug is
not here anymore, no? Stephen did file this bug report to mupdf?
--
Manuel Giraud
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DocView, mupdf and librsvg
2023-01-07 15:03 ` Manuel Giraud
@ 2023-01-08 10:30 ` Stephen Berman
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2023-01-08 10:30 UTC (permalink / raw)
To: Manuel Giraud; +Cc: Eli Zaretskii, emacs-devel
On Sat, 07 Jan 2023 16:03:01 +0100 Manuel Giraud <manuel@ledu-giraud.fr> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
> [...]
>
>> I think instead of changing the default unconditionally, we should
>> probe the version of mutool, and change it only for affected versions.
>> Would someone like to propose a patch along those lines?
>
> I could work on one but we might need a version number where this bug is
> not here anymore, no? Stephen did file this bug report to mupdf?
Sorry for the late reply. It's a bit inconvenient to file a bug with
MuPDF (you have to register an account), and since Gregory Heytings
already sent a report with a patch for this issue to the Debian
bugtracker, I hope that will find its way upstream.
Steve Berman
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-08 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 12:07 DocView, mupdf and librsvg Manuel Giraud
2023-01-07 12:24 ` Stephen Berman
2023-01-07 13:31 ` Eli Zaretskii
2023-01-07 15:03 ` Manuel Giraud
2023-01-08 10:30 ` Stephen Berman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.