Inkscape fails to correctly save imported PDF page as SVG (invalid Char values)

Bug #1484215 reported by Frédéric Parrenin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

Steps to reproduce:
- open the attached pdf file, select page 9
- save the page as an inkscape svg file
- close inkscape
- re-open the produced svg file with inkscape
=> the page is corrupted, e.g., the included graph is missing

=====
inkscape 0.48 on debian 8

Revision history for this message
Frédéric Parrenin (parrenin-ujf) wrote :
Revision history for this message
Frédéric Parrenin (parrenin-ujf) wrote :

I forgot to add that I use inkscape 0.48 on debian 8.

su_v (suv-lp)
tags: added: importing pdf
description: updated
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.5 r10040, 0.91 r13725, Inkscape 0.91+devel r14285 on OS X 10.7.5:
The saved SVG file fails to render as expected, and produces several console warnings on open (parser errors related to character data in text content).

Console warnings from version saved with Inkscape 0.91+devel r14285, poppler 0.35:

/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:196: parser error : PCDATA invalid Char value 5
         id="tspan3463"></tspan></text>
                        ^
/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:281: parser error : PCDATA invalid Char value 8
         id="tspan3511"</tspan></text>
                        ^
/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:583: parser error : Opening and ending tag mismatch: g line 44 and text
         id="tspan3679">b</tspan></text>
                                        ^
/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:590: parser error : PCDATA invalid Char value 5
         id="tspan3683"></tspan></text>
                        ^
/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:809: parser error : Opening and ending tag mismatch: svg line 4 and g
</g></svg>
    ^
/tmp/1484215-shapiro-EPSL2004-page_9-r14285.svg:809: parser error : Extra content at the end of the document
</g></svg>
    ^

Revision history for this message
su_v (suv-lp) wrote :

Import via poppler (available in Inkscape >= 0.91) saves and reopens as expected:
Attached SVG file was created and saved with Inkscape 0.91+devel r14285 on OS X 10.7.5 (poppler 0.35, cairo 1.14.2).

Revision history for this message
su_v (suv-lp) wrote :

[ Todo: search for older similar reports (this is likely a duplicate). ]

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
su_v (suv-lp)
summary: - Inkscape failed to save this image to svg
+ Inkscape fails to correctly save imported PDF page as SVG (invalid Char
+ values)
tags: added: encoding
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

Hi, this issue has been reported on Gitlab: https://gitlab.com/inkscape/inkscape/-/issues/1369

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.