23 Apr
2008
23 Apr
'08
3:53 p.m.
On Wed, 2008-04-23 at 14:59 +0100, Richard Henwood wrote:
Since you've spent a bit of time working with the extension interface, maybe you can help me with my query:
Is it possible for me to invoke 'save as' from an extension?
In my extension, I would like to be able to turn off all text, then save file as pdf, then turn all text back on again.
Yes. What happens with output extensions is that you can define a "helper extension" which is basically the next extension down the pipeline from you. So you'd define an output extension for your type "pdf no-text" which then uses the helper "pdf".
There is no language restriction here. It could be C++ or Python or any language that supports STDIN and STDOUT (all of them).
--Ted