Closed louis-gallo-cigna closed 5 years ago
Without a sample SVG file, it is difficult to debug your issue. Could you please upload one?
Hi Claude,
Absolutely. I can provide an identical SVG created from my 0.8.1 testbed, and one from the 0.9.2 testbed.
Will that work?
I appreciate your response and help.
I’ll send that long shortly.
Thanks,
Lou
From: Claude Paroz [mailto:notifications@github.com] Sent: Tuesday, October 8, 2019 11:15 AM To: deeplook/svglib svglib@noreply.github.com Cc: Gallo, Louis G (Lou) 523 Louis.Gallo@Cigna.com; Author author@noreply.github.com Subject: [External] Re: [deeplook/svglib] Upgrading from SVGLIB 0.8.1 to 0.9.2 Breaks - SVG Images Now Appear in Black and White (#211)
Without a sample SVG file, it is difficult to debug your issue. Could you please upload one?
Thanks, at least it allowed me to spot the issue. As CSS is now interpreted, it appears there is a precedence bug between the generic CSS in the defs part of the file and the styles included in the elements themselves.
(I first posted this issue last year, but decided not to upgrade until now.)
I have been using SVGLIB 0.8.1 for a few years now to incorporate existing color SVG chart images (created in R) into a PDF file. It has worked great.
When I try to upgrade to the latest SVGLIB 0.9.2, on a clean Windows machine with Python 3.6.1, my imported SVG images (which are fine themselves) now appear in black and white once imported in the PDF file.
I also get this error when executing SVGLIB commands:
Unable to find a suitable font for 'font-family:Nimbus Sans L'
I really would like to upgrade SVGLIB. What am I doing wrong here?
Simply upgrading to SVGLIB 0.9.2 causes the process of importing SVG images into PDFs to break. Downgrading back to 0.8.1 returns everything to normal.
I expect my nice color SVG files to be imported into the PDF file by SVGLIB and stay in color.
Any help is greatly appreciated.
Lou