Export just a group as pdf does not work properly

Bug #1659334 reported by Tim Kaluza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Medium
Unassigned

Bug Description

Using Kubuntu 16.04 and Inkscape 0.92 on a 64bit machine.

I was used to export parts of my .svg after grouping what I need and giving it a name and saying SaveCopyTo "pdf" and provding the next dialog with the information.

But it does not work anymore for me. What am I doing wrong?

I made a short screencast of my problem.
You can view it here:
http://sendvid.com/5na67ow9
or
https://www.youtube.com/watch?v=HPK50PxT9g0

Thank you very much!

Tim Kaluza (tkaluza0)
tags: added: exporting groups pdf viewbox
Revision history for this message
Hachmann (marenhachmann) wrote :

Additional: It does work if you just select the group.
As soon as an ID is entered in the pdf export dialog, though, the page seems to be exported instead.

summary: - Export just a group as pdf does not work probably
+ Export just a group as pdf does not work properly
Revision history for this message
su_v (suv-lp) wrote :

Please attach a test case (original Inkscape SVG file, exported PDF files) to the bug report to allow further investigation of the reported issue.

Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Possibly related earlier reports:
Bug #1411718 “Export to PS/EPS/PDF of 'object' per id ignores viewBox”
Bug #1155036 “Reversed Output when limiting export on selected Objects”
Bug #743987 “export-id with export-pdf/export-eps/export-ps wrong bbox”

Revision history for this message
Tim Kaluza (tkaluza0) wrote :

@Hachmann
Sorry for asking, but this doesn't seem to be working here.
I did the following:

- Selected a group
- SAVE COPY TO Dialog --> *.pdf
- PDF Settings --> 1.5, include fonts, 300dpi, Use Size of Object by export
- Object ID --> Nothing

It just export the whole page while having selected just one group - with all the other stuff in it. So I actually did not know that just selecting is enough - sorry if I got your post wrong.

Revision history for this message
Tim Kaluza (tkaluza0) wrote :
Revision history for this message
Tim Kaluza (tkaluza0) wrote :

Zeichnung.pdf | Exported with page as site \ Good
Zeichnung-1.pdf | Exported with Object ID \ Bad 1
Zeichnung-2.pdf | Exported with Object ID and changed Scaling of viewbox to 1 + px -> mm \ Bad 2
Zeichnung-3.pdf | Exported with Site Size \ Good
Bad 1 and Bad 2 are all different.

Revision history for this message
Hachmann (marenhachmann) wrote :

Yes, you're right. It then exports the whole drawing for me, instead of 'page'.
I only had one object in the drawing, so I got an identical result (bad choice of test case..., sorry!).

But it seems the issue is already known anyway.

This here works correctly in 0.91, btw., so the second bug report that talks about 0.47 is maybe only remotely related?

Revision history for this message
Hachmann (marenhachmann) wrote :

'instead of page' -> 'instead of selected object'

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
su_v (suv-lp) wrote :

1) 'Zeichnung-1.pdf'
Exporting object per ID fails to take transforms on parent containers correctly into account. The layer of the test case (Zeichnung.svg) has a transform (probably due to resizing the page to selection at some point):

  <g
     inkscape:label="Ebene 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(-35.029764,-36.618822)">

The translate() of the layer group is not correctly considered when exporting an object inside that group per ID to PDF. The page size of the exported PDF matches the object's bounding box, but the position of the object on that page area is not correct.

This issue is tracked in
* Bug #743987 “export-id with export-pdf/export-eps/export-ps wrong bbox”
  https://bugs.launchpad.net/inkscape/+bug/743987

A known workaround is to add new layer(s) after resizing the page (if page height, or page origin changed), moving the object(s) from old to newly added layer(s), save, and continue from there e.g. with exporting objects per id to PDF.

2) 'Zeichnung-2.pdf':
viewBox other than one mapping user units to CSS pixels 1:1 are not supported when exporting object per id to PDF: this is tracked in
* Bug #1411718 “Export to PS/EPS/PDF of 'object' per id ignores viewBox”
  https://bugs.launchpad.net/inkscape/+bug/1411718

Launchpad does not allow to link a single report as duplicate of two other reports - please choose which one matters more to you (there is no point in keeping this report (bug #1659334) separately open: the described symptoms are already tracked in older reports (none of them fixed); tracking multiple issues on a single report on launchpad is a pain (except for the reporter), and usually results in reports which never get closed because they are not notified / updated automagically when one of the mentioned issues might have been fixed based e.g. on a more specific report).

Revision history for this message
Tim Kaluza (tkaluza0) wrote :

Thank you very much!

I choose the second option :).

* Bug #1411718 “Export to PS/EPS/PDF of 'object' per id ignores viewBox”
  https://bugs.launchpad.net/inkscape/+bug/1411718

Changed in inkscape:
status: New → Invalid
su_v (suv-lp)
Changed in inkscape:
status: Invalid → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.