handling Javascript actions in PDF with Java
I'm trying to make PDF forms (aka AcroForms) editable in Java. So far i got the GUI editing and printing working usin开发者_StackOverflow中文版g Bruno Lowagie's iText and Sun's pdf-renderer.
But now i'm close to scrapping it all, because after switching from try & error to reading the PDF specification, i realized that it's all worthless unless i can make the multitude of possible JavaScript actions work as well. I don't think iText can do that.
So in short: are there any Java libraries that do proper form handling including actions? Or maybe even a Java GUI component to edit form data?
Does Suns PDFRenderer support Javascript? ARAIK, only JPedal and BigFaceless offer Javascript support.
You might take a look at Mozilla Rhino: http://www.mozilla.org/rhino/ I haven't used it, but it looks promising, if you already have the GUI in Java.
精彩评论