at this point I have implemented a Python script that
features basic text export into a LaTeX picture
environment. I am also able to remove the text
nodes form the tree for later EPS/PDF export.
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
- Will I have access to the calculation results of the
bounding box for the current image?
--- Ted Gould <ted@...11...> wrote:
On Wed, 16 Aug 2006, Jan Gacnik wrote:
> I only had a 2 minutes look at the sources, but my
> plans are roughly like that:
> - descent the document tree, find text items,
> them to a LaTeX file, remove them form the tree
> - pass the graphics-only document tree to the
> PS/PDF export routines
This could work, but I'd suggest a different way to
do it. If I were
trying the same thing, I'd probably write an effect
that was "Put Text
nodes on top". Have it so that you can run that
effect, and then do what
ever you want with the document (export PDF, export
to SVG, etc.)
Probably the easiest way to implement that effect is
but the trick is going to be handling the
transformations of parent nodes.
So, if the text nodes is in a group that has a
transform on it, that
transform needs to be applied when you move the text
node out of that
group. I'd probably solve that by just including
the same grouping in
your top layer.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around