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, write
them to a LaTeX file, remove them form the tree
- pass the graphics-only document tree to the standard
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 through scripting, 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.
--Ted