This will be quite nice feature. I've been thinking to integrate
something similar for a long time but what I have in mind is to use
either a JavaScript pdf writer (yep I found one) or something that I
can integrate at native level with jsctypes.
Although you can use live connect, with a bit of hacking, I think that
you may find that your code is difficult to maintain and perhaps a bit
unstable. I hear that live connect will go away with mozilla 2.0.
What might be a better solution is to write a thin wrapper around your
pdf exporting application. For example, you can generate the report
using whichever way you want and at the end you simply execute your
jar, as a separate process, with the xml input to create the final
report. Both solutions require java to be installed anyway so both a
valid but I tink that what I am proposing here might be easier to
implement and you can reuse the XML output plugin. Your plugin will be
only a few lines of code.
Another solution will be to use something more native with jctypes.
That will be more universal solution and wont require java to be
installed or any 3rd party library as long as you ship your library
bundled for the 3 OSes we currently support. Calling native functions
from js is relatively easy and also thread safe if you stick to using
ChromeWorkers.
Let me know what do you think. Perhaps we can provide something that
will make your plugin easier to implement.