Importing a PDF to SVG omits most of the colors (0.92.3)

Bug #1800621 reported by Saurabh Dasgupta
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Hi All,
I have been attempting to convert a bunch of PDFs to SVG. I noticed that for one of the PDF files alone, the SVG file had very little of the original colours.

Exporting to SVG without the POPPLER option
--------------------------------------------
Many of the colors are lost.
All the text from the PDF is exported as readable text in the SVG.
I can see the text as plain English when I open the SVG file in notepad. These are all <text> elements

Exporting to SVG with the POPPLER option
-----------------------------------------
Colors are preserved.
The text is no longer readable when I view the SVG file in notepad.
The text is converted to something else. I DO NOT see any <text> elements.

Preserving the text as TEXT elements is important in my scenario and therefore I cannot use the POPPLER option. I have attached the 2 SVG files.

The products works well for most of the PDFs. Just the inconsistency with a couple some of the PDF files.

thank you,
Sau

Revision history for this message
Saurabh Dasgupta (sau002) wrote :
Revision history for this message
Saurabh Dasgupta (sau002) wrote :

Forgot to add.
InkScape version: 0.92.3
OS: Windows 10

Thanks again

description: updated
Revision history for this message
Alvin Penner (apenner) wrote :

running Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11), using the Internal Import of pdf.
It looks to me like the colors are correct. The problem is that the linewidths are too narrow. Attached is an edited version where I have edited Chart 4 to have linewidths of 0.5 px instead of the original 0.1 px.

summary: - Exporting a PDF to SVG omits most of the colors (0.92.3)
+ Importing a PDF to SVG omits most of the colors (0.92.3)
Revision history for this message
Saurabh Dasgupta (sau002) wrote :

Thanks for looking into this. Why is the internal import of InkScape not reproducing with the same linewidths as in the case of POPPLER import?

If there is a global setting or a command line flag, I am happy to change from our side.

Many thanks.

Revision history for this message
Alvin Penner (apenner) wrote :

>> Why is the internal import of InkScape not reproducing with the same linewidths as in the case of POPPLER import?

not sure why, some kind of scaling problem, perhaps. The stroke width reports as 0.1 px, which is unusually small.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Hi - thanks for reporting this bug.

I'm closing as part of bug migration to Gitlab. Let's continue tracking the issue in https://gitlab.com/inkscape/inkscape/-/issues/2735, which is also about a pdf generated in skia (as reported by your demo file).

I'll add your file as a comment there in case it ends up being a different issue (so the issue doesn't get lost)

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

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.