Bug 706458

Summary: mupdf 1.21.0 SVG conversion issue: "Unescaped '<' not allowed in attributes values"
Product: MuPDF Reporter: Nate Drake <ndrake>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sebastian.rasmussen
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: All   
Customer: Word Size: ---
Attachments: PDF test file

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 ***