Internal PDF import ignores path line width (skia/chromium)
Summary:
Using Inkscape's "internal import" to load a simple PDF exported from Chromium, containing paths of various line widths, the resulting document in Inkscape has all lines set to 1.001px width.
This doesn't happen with Poppler/Cairo import, and the preview thumbnail in the PDF import window shows lines of different thicknesses despite the result of the import being all lines the same thickness.
The PDF opens properly in Adobe Acrobat and new instances of Chrome, and examining the PostScript contents of the PDF show it does specify different line thicknesses, so the problem is with Inkscape's import.
Steps to reproduce:
- open an HTML document containing a simple SVG in Chromium
- save the document as a PDF (Print -> Save as PDF)
- open Inkscape
- open the PDF you just created, or the attached sample PDF, selecting Internal Import
What happened?
The resulting document contains three lines 215px wide with the stroke thickness set to 1.001px
What should have happened?
The lines should have stroke thicknesses of 2, 4 and 6 pixels respectively. This is the result when the same PDF is imported using Poppler/Cairo.
Atached are the minimal HTML file, the PDF resulting from saving it as PDF from Chrome (shows different line thicknesses when viewed), and the result of importing into Inkscape and saving as SVG (identical line thicknesses)
Sample attachments:
Version info
Inkscape 1.1 (c68e22c387, 2021-05-23)