Re: [iText-questions] Document-Level JavaScript

2008-08-04 Thread Paulo Soares
Start by deleting in the catalog /Names->/JavaScript. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joachim Sieglen > Sent: Monday, August 04, 2008 3:08 PM > To: itext-questions@lists.sourceforge.net > Subject: [i

[iText-questions] Document-Level JavaScript

2008-08-04 Thread Joachim Sieglen
Dear ladies and gentlemen, I tried to manipulate the document-level JavaScripts of PDF-forms programatically (with iTEXT). I found a method for reading document-level JavaScript (PDFReader.getJavaScript()) and a method for adding document-level JavaScript (PDFWriter.addJavaScript()). But the task

Re: [iText-questions] document level javascript function

2005-10-04 Thread Patrick Lee
Got a workaround anyway... just added String currentJavascript = stamp.getReader().getJavaScript(); StringBuffer sb = new StringBuffer(currentJavascript); To get around overwriting the javascript functions embedded in the form, bit naff though. -patrick. ___