Hello,
For work I have to work quite heavily with GIS software, usually preparing the maps and exporting them to SVG for editing with Inkscape. Usually all goes well but in the last couple of days I've noticed that sometimes graduated symbols (bubbles) cannot be exported to PDF.
I've attached an example file with only the bubbles. They are perfectly visible there on the SVG but disappear when exporting to PDF. This does not happen every time, only occasionally. I've made sure that there are no groups in the file and that all objects are paths. Any ideas how this could be solved?
Thank you very much!
Missing elements when exporting to PDF
Missing elements when exporting to PDF
- Attachments
-
- Example.svg
- (169.12 KiB) Downloaded 345 times
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Missing elements when exporting to PDF
It seems the strokes on the objects are interfering. They will output to pdf if the strokes are turned off, so I'd go that way if it works for you.
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Missing elements when exporting to PDF
Ah of course the strokes! Didn't realize I hadn't removed them in the versions where this didn't work.
Works perfectly now, thank you.
Works perfectly now, thank you.
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Missing elements when exporting to PDF
Yeah, I'm really not sure why the strokes cause a problem, but if turning them off works for your project, all's well that ends well, I guess... 

Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Missing elements when exporting to PDF
Not sure... I think there is some malformed code hiding in the conversion. My test file including a similar object renders the added object ok in pdf, and copying its style (with similar stroke width) to the problem object resolves the problem object's failure to render in pdf.
- Attachments
-
- Example-TD.svg
- (2.64 KiB) Downloaded 195 times
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Missing elements when exporting to PDF
Issue not reproduced with 0.91 WinXP.
Seems 0.92x needs style attributes to also include:
Adding that snippet to the style of the yellow circle allows export to pdf.
Seems 0.92x needs style attributes to also include:
Code: Select all
stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill
Adding that snippet to the style of the yellow circle allows export to pdf.
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Missing elements when exporting to PDF
Thank you very much for all your help. I should have specified I'm using Inkscape 0.91 with Windows 10.
The issue was fixed by removing the strokes, but it actually also worked when I changed the stroke line and color (default width is set at 0.032, which might be too small for Inkscape to export?).
The issue was fixed by removing the strokes, but it actually also worked when I changed the stroke line and color (default width is set at 0.032, which might be too small for Inkscape to export?).
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Missing elements when exporting to PDF
Zanmatt wrote:TI should have specified I'm using Inkscape 0.91 with Windows 10.
That's interesting... considering the document exports to pdf fine on my .91 WinXP (32bit) machine, which uses Cairo 1.11.2 (In pdf, Menu: File>Properties).
Maybe the Cairo version is different in the 64bit version?
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Missing elements when exporting to PDF
It is, I think. That's also where the black printing issues stem from, as far as I understand.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)