Need to use --export-area-drawing for exporting SVG

Asked by Mike Keesey on 2013-08-08

I need to generate a plain SVG file where the viewport matches the drawing area. Inkscape certainly has the power to figure out the drawing area, since it can do that for exporting PNGs, etc. But it doesn't seem to have an option for applying that when exporting SVGs. Am I missing something? Or is this a feature that can be easily added?

To be clear, what I want to do is this:

inkscape --without-gui --export-area-drawing --export-plain-svg=cropped.svg raw.svg

Where 'raw.svg' is a file where the viewport does not match the drawing area, and in 'cropped.svg' the viewport has been changed to fit the drawing area.

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
jazzynico
Solved:
2013-08-19
Last query:
2013-08-19
Last reply:
2013-08-19
Best jazzynico (jazzynico) said : #1

Hello Mike,

A request already exists (https://bugs.launchpad.net/inkscape/+bug/1164506). Don't hesitate to click on "This bug affects me too" at the top of the page to add some weight to the request.

Regards.

Mike Keesey (keesey) said : #3

Sorry, hadn't seen the duplicate issue.