Export with export-id and non-A4 page gives blank PDF

Bug #1396033 reported by darius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I'm having two SVG documents that each contain multiple grouped drawings that I want to export by ID.

The first SVG file is A4-portrait-sized and exports just fine:

    inkscape --export-id=$@ --export-area-drawing --export-latex --export-pdf=timing-paths-$@.pdf -f timing-paths.svg

The second SVG file is A5-landscape-sized and exports to blank PDFs. I have found the reason for this to be that the layer group contains a vertical translation of about -527 to move the drawing into the page area. This translation seems not to be correctly resolved into the PDF file.

When I edit the SVG file directly, set the translation to 0 and open the document in Inkscape, the drawing is vertically below the page area. (EOG shows the SVG as a blank page now.) If I set the page dimensions to A4 portrait, save and edit the SVG file manually again and set the translation to 0 again, the drawing lies nicely on the page.

From this I conclude that the PDF export does not respect the translation and places the drawing outside the visible area.

Inkscape version: Inkscape 0.48.5 r10040
OS/platform: Linux/64 bit

Tags: cli exporting pdf
Revision history for this message
su_v (suv-lp) wrote :

Please add information about OS/platform and Inkscape version (see Inkscape menu 'Help > About Inkscape') to the bug description, and attach sample SVG files to ease further investigation of the reported problem.

Changed in inkscape:
status: New → Incomplete
tags: added: cli exporting pdf
description: updated
Revision history for this message
darius (dariuskellermann) wrote :

The attached SVG document contains a group with the ID "testGroup". Exporting with the command

    inkscape --export-area-drawing --export-id=testGroup --export-pdf=test_a5ls.pdf test_a5ls.svg

will result in a blank page in test_a5ls.pdf. Changing the page size to A4-portrait and then exporting with the same command will give the expected result.

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

Reported issue is caused by the translation (via transform attribute) of the object's parent layer due to changing the page height at some point from A4 Portrait to A5 Landscape. This transformation is not correctly taken into consideration when exporting an object per id to cairo-based export formats (PDF|PS|EPS). This issue is already tracked in
* Bug #743987 “export-id with export-pdf/export-eps/export-ps wrong bbox”
  https://bugs.launchpad.net/inkscape/+bug/743987

Switching the page format of the test case attached here to A4 Portrait basically reverts the translate() transformation of the layer group to identity (no offset), which allows to export the object per id to PDF as expected.

Linking as duplicate to bug #743987.

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.