Colors of PDF export are wrong

Post questions on how to use or achieve an effect in Inkscape.
GMG
Posts: 1
Joined: Tue Apr 08, 2014 8:01 pm

Colors of PDF export are wrong

Postby GMG » Tue Apr 08, 2014 8:19 pm

Hello,

I want to use Inkscape as SVG -> PDF command line converter. For black and white SVGs that works fine, but colored ones are screwed up. My workchain is:
  • Create the picture in Visio, export as svg, since the PDF export introduces some errors
  • Convert it to PDF with inkscape --export-pdf
  • Crop it with pdfcrop

I've attached one of the pictures, which Inkscape fails to convert correct to PDF. It also effects every other tested vector export the same way. Export to pixelgraphics like jpg work fine.

I've also create some pictures directly in Inkscape, there the PDF export work fine. Unfortunately I have to do some of the stuff with Visio.
Attachments
Test2.svg
(11.88 KiB) Downloaded 163 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Colors of PDF export are wrong

Postby Lazur » Tue Apr 22, 2014 5:09 am

Hi.

That is some really weird svg to be edited in inkscape.
You have some overflow:hidden style attributes.
Other surprising parts are the using of clones with no possible parents (?) and working viewBoxes.
Never saw such behave before, cannot tell how to get to a more common structure of your design within inkscape in a "nice" way.

The solution I came up with is the following:
  • use the node editor tool to select each of the 9 objects one by one, clicking on each
  • release clone links by pressing Shift+Alt+D
  • copy the objects to clipboard (Ctrl+C)
  • open a new inkscape window
  • paste the objects (Ctrl+V)

That way the problematic parts will be moved out.

Maybe it would be easier just to use inkscape instead for all the visio tasks.
You can set things right including the document's size too, no need of pdf cropping outside.
Attachments
Test2x.svg
(38.41 KiB) Downloaded 152 times


Return to “Help with using Inkscape”