I do not apply any security setting to my pdf files and 5.0 is the Adobe Acrobat Full, not the Reader(the Reader is 6.0).
-----Original Message----- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 3:45 PM To: SARGHI Mircea Ionut; [EMAIL PROTECTED] Subject: Re: [iText-questions] JavaScript not working At 12:12 PM +0300 6/26/03, SARGHI Mircea Ionut wrote: >Document document = new Document(psize, 0, 0, 0, 0); >PdfWriter writer = PdfWriter.getInstance(document, new >FileStream("completed.pdf", FileMode.Create)); >PdfAction printAct = PdfAction.javaScript("this.print(false);\r",writer); >PdfAction closeAct = PdfAction.javaScript("this.closeDoc(true);\r",writer); >writer.addJavaScript(printAct); >writer.setAdditionalAction(PdfName.DP,closeAct); Do you apply security to the PDF at all? If so, what settings? >When i open my docuemnt with Adobe Acrobat 5.0 it works fine. However the >javascript will not execute in the Acrobat Reader 6.0. Are you sure it's 5.0 and not 5.1, Reader that it works in? Leonard -- --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax) ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
