![](https://secure.gravatar.com/avatar/ea82b036a537a86ff8f886e89f2c5944.jpg?s=120&d=mm&r=g)
2 Sep
2006
2 Sep
'06
6:39 a.m.
On Tue, 2006-08-29 at 01:13 -0700, Jan Gacnik wrote:
To complete my prototype cycle, I would like to know:
- Is there any way that I can trigger the standard Inkscape export modes (PS/PDF) from within my
script?
If you're using Inkscape scripting, no, the only interface is STDIN and STOUT. As the DOM support finishes up in Inkscape we plan on providing a more feature rich scripting environment where the script will execute in Inkscape, but that is not currently available. You can do that if you implement the extension as a C++ extension though.
- Will I have access to the calculation results of the bounding box for the current image?
That's not passed to the script, but you can call another instance of Inkscape with the command line parameters to calculate the bounding box of any SVG element. If you do "inkscape --help" you can get a list of all the command line parameters available.
--Ted