Export area drawing doesn't work with SVG format

Bug #1164506 reported by geaplanet
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

I have a lot of SVG files with a canvas bigger than the drawing, and I need to adjust this for having the same dimensions. I tryed this command:

inkscape --export-area-drawing -l output.svg input.svg

But it appears that only works with raster exporting (like png) and not with vector exporting.

Tags: cli exporting
Revision history for this message
jazzynico (jazzynico) wrote :

According to the man page:
"-D, --export-area-drawing
    In PNG , PDF , PS , and EPS export, exported area is the drawing (not canvas), i.e. the bounding box of all objects of the document (or of the exported object if --export-id is used)."

tags: added: cli exporting
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
geaplanet (geaplanet) wrote :

Ok, to the wishlist is pefect then.

850 files is waiting for me O_O!

open, select all, copy, new file, paste, document properties, adjust size, save...file by file :_(

Do you know any alternative way to do this?

Revision history for this message
brainstorm (brainstorm) wrote :

I'm also interested in this functionality so for now I'm trying to reach it through Inkscape cli verbs functionality, so I began with:

inkscape -g -f input.svg --verb=DialogDocumentProperties

Then I realized that this one does the trick quite well:

inkscape -g -f `pwd`/psone_grafitti-F.Cu.svg --verb=FitCanvasToDrawing --verb=FileSave --verb=FileClose --verb=FileQuit

Hope that helps until --export-area-drawing supports SVG's ;)

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.