Bug 706458 - mupdf 1.21.0 SVG conversion issue: "Unescaped '<' not allowed in attributes values"
Summary: mupdf 1.21.0 SVG conversion issue: "Unescaped '<' not allowed in attributes v...
Status: RESOLVED DUPLICATE of bug 706320
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC All
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-08 20:05 UTC by Nate Drake
Modified: 2023-03-08 22:30 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
PDF test file (10.89 KB, application/pdf)
2023-03-08 20:05 UTC, Nate Drake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Drake 2023-03-08 20:05:23 UTC
Created attachment 23856 [details]
PDF test file

Hi,

There seems to be an issue with SVG files created from PDFs using mupdf 1.21.0.  The resulting SVG files will fail to render in browsers with errors like:

"Unescaped '<' not allowed in attributes values"

To reproduce, use mutool to convert the attached PDF file into an SVG with this command line:

mutool convert -o p.svg -F svg -O text=path PDF_TEST.pdf

Then attempt to open the SVG file in a web browser.  With 1.21.0 you'll get the "Unescaped '<' not allowed in attributes values" error and with 1.20.0 the SVG will render fine in the browser.

Side note: using the 'text=text' option with version 1.21.0 will generate an SVG that renders ok, but the fonts look bad (as expected)
Comment 1 Sebastian Rasmussen 2023-03-08 22:30:17 UTC

*** This bug has been marked as a duplicate of bug 706320 ***