开发者

handling Javascript actions in PDF with Java

开发者 https://www.devze.com 2023-01-03 11:34 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消