PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Aandi, Thanks for pointing me, but I hit a brick wall. I found where the document needs to meet 3 criteria in order for embedded JavaScript to run. 1. User must have a Digital ID 2. Document must be signed using the Digital ID 3. Recipient has to trust signer to Execute JavaScript I followed the manual to do these three steps (several times), however, the SaveAs command is still not being allowed to run. Did I miss something ? TIA. Brent -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Aandi Inston Sent: Thursday, November 20, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: RE: [PDFdev] Should be a simple JavaScript PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________ > I copied the following code out of the Help files and pasted into the > JavaScript window in the Action tab for a Button: > > this.saveAs("/c/temp/test.pdf") > > But it does not save the file. No, it wouldn't. Take another look at the JavaScript Reference, specifically the note headed "Security". You probably skipped it because it didn't seem important, but it's actually the reason why you can't do that. Unless you control the user's PC and can install JavaScripts to their PC, you cannot do this at all. Consider what hackers could do if this worked! They could overwrite the PDFs on your PC - perhaps replace a payroll file on the boss's PC...? Aandi To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
