Missing elements when exporting to PDF

Post questions on how to use or achieve an effect in Inkscape.
Zanmatt
Posts: 4
Joined: Thu Jun 09, 2016 8:57 pm

Missing elements when exporting to PDF

Postby Zanmatt » Sat May 06, 2017 8:24 pm

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!
Attachments
Example.svg
(169.12 KiB) Downloaded 345 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Missing elements when exporting to PDF

Postby tylerdurden » Sat May 06, 2017 10:30 pm

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/

Zanmatt
Posts: 4
Joined: Thu Jun 09, 2016 8:57 pm

Re: Missing elements when exporting to PDF

Postby Zanmatt » Sat May 06, 2017 10:39 pm

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.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Missing elements when exporting to PDF

Postby tylerdurden » Sat May 06, 2017 11:21 pm

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/

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

Re: Missing elements when exporting to PDF

Postby Lazur » Sun May 07, 2017 12:42 am

Probably this.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Missing elements when exporting to PDF

Postby tylerdurden » Sun May 07, 2017 1:19 am

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/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Missing elements when exporting to PDF

Postby tylerdurden » Sun May 07, 2017 1:29 pm

Issue not reproduced with 0.91 WinXP.

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/

Zanmatt
Posts: 4
Joined: Thu Jun 09, 2016 8:57 pm

Re: Missing elements when exporting to PDF

Postby Zanmatt » Mon May 08, 2017 4:32 pm

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?).

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Missing elements when exporting to PDF

Postby tylerdurden » Mon May 08, 2017 9:54 pm

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/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Missing elements when exporting to PDF

Postby Moini » Mon May 08, 2017 11:36 pm

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)


Return to “Help with using Inkscape”