The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com __________________________________________________________________
I've encountered similar problems with openDoc upon switching to Acrobat 6.0. Inserting the code "this.disclosed = true;" at the document level at the top level of the document you are trying to open should make openDoc work as expected. If the document you are trying to open is not "disclosed", then openDoc returns null instead of returning a doc object. Matthew Mariani -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ml.public Sent: Wednesday, January 21, 2004 3:27 AM To: Pdfzone Subject: [PDF] Opendoc javascript with Acrobat 6.0 problem The PDF list is a service provided by PDFzone.com | http://www.pdfzone.com __________________________________________________________________ Hi, I try to set a bookmark action with javascript (Windows XP, Acrobat 6.0 Pro) like this : var oDoc = app.openDoc('../SubFolder1/File1.pdf', this); When I click this bookmark, I get a message : NotAllowedError : Protection parameters do not permit access to this property or method (approximate translation...). Is there new protection rules with Javascript and Acrobat 6.0 pro, as this method did work with Acrobat 5.0 ? Javascript guide does not mention that openDoc is a protected method... Another issue : with Acrobat 5.0 and opening of this document in a browser, this same method (var oDoc = app.openDoc('../SubFolder1/File1.pdf', this);) does not work, with an error : Incorrect parameter cPath., whereas it works in Acrobat. Is the problem the relative path, the THIS keywork or whatever else ? Thanks for help. Mikael LAUSSEUR Aalto Conseil To change your subscription: http://www.pdfzone.com/discussions/lists-pdf.html To change your subscription: http://www.pdfzone.com/discussions/lists-pdf.html
