I have been using the basic functions of inkscape for some time, but now I am facing a problem for which I have not found a solution after several hours of trying:
I want to convert a SVG generated by a PCB layouting software into a PDF. The SVG in question is attached. In Inkscape the content looks fine, also when I do a PNG export the image is exported correctly. But if I want to export the image as PDF to get the vector graphic, the PDF is empty. The file size suggests that it is not empty, but the exported PDF contains only a white page. Can anyone help me understand why it exports this way? I suspect it has something to do with different layers in the SVG, however I am at a loss.
Hello community,
I have been using the basic functions of inkscape for some time, but now I am facing a problem for which I have not found a solution after several hours of trying:
I want to convert a SVG generated by a PCB layouting software into a PDF. The SVG in question is attached. In Inkscape the content looks fine, also when I do a PNG export the image is exported correctly. But if I want to export the image as PDF to get the vector graphic, the PDF is empty. The file size suggests that it is not empty, but the exported PDF contains only a white page. Can anyone help me understand why it exports this way? I suspect it has something to do with different layers in the SVG, however I am at a loss.
Thanks in advance for your help!
The issue seems to be masks generated by the pcb software.Β
I'd use the objects dialog to remove the masks before saving a copy as pdf.
Out of interest I tried to convert the original SVG in Linux using : 1. Cairosvg and 2. rsvg-convert
1)
sudo apt install cairosvgΒ
cairosvg -f pdf ./Photo_View_2020-12-25_15-55-17.svg -o cairoConverted.pdf
2)
sudo apt-get install librsvg2-bin
rsvg-convert --format pdf ./Photo_View_2020-12-25_15-55-17.svg > rsvgConverted.pdf
rsvg-convert seems to do a correct ? conversion, cairo missed some details.Β
Both files attached.
Β