Comment 7 for bug 171511

Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: [Bug 171511] Re: specifying area for PDF command line export

Bulia,

This is very cool, I hadn't realized how many verbs there were. I have a
feeling there are pobably a lot of 'wishlist' items that can be crossed off
as implemented now. That said, I actually couldn't come up with a command
string that did what the original report asked for:

If I run:

$ inkscape --verb FitCanvasToDrawing --verb FileSaveAs tree.svg

Then inkscape opens the file, crops it as requested and presents me with the
file save as dialog, which means it can't be used in a script.

If I try to combine the -A command option with the verb using either of the
following two commands,
then I can generate a pdf, but it is not cropped to the drawing:

$ inkscape --verb FitCanvasToDrawing -A tree.pdf tree.svg
$ inkscape -A tree.pdf --verb FitCanvasToDrawing tree.svg

Am I missing something?

-Tom

On Jan 26, 2008 10:46 AM, bbyak <email address hidden> wrote:

> > It would be great if their would be a command line option for the "Fit
> page to selection" action.
>
> You do have it in 0.46, see
> http://wiki.inkscape.org/wiki/index.php/ReleaseNotes046#Command_line
>
> --
> specifying area for PDF command line export
> https://bugs.launchpad.net/bugs/171511
> You received this bug notification because you are a member of Inkscape
> Bug Team, which is the bug contact for Inkscape.
>