Print Page | Close Window

Javascript

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1748
Printed Date: 13 Dec 25 at 5:10PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Javascript
Posted By: JHPJHP
Subject: Javascript
Date Posted: 24 Feb 11 at 4:04PM

Adds JavaScript to a global location in the document. For example, this allows functions to be defined which can then be called from JavaScript attached to events.

Is this excluded to:

"O" = (capital letter O) This event occurs when the page is opened.
"C" = This event occurs when the page is closed.

and

"DC" = Document close
"WS" = Will save
"DS" = Did save
"WP" = Will print
"DP" = Did print

Thank you,




Replies:
Posted By: JHPJHP
Date Posted: 24 Feb 11 at 6:29PM
Hi Again,
 
I would also like to know if the following is possible, or if there is an alternate solution:
 
After JavaScript has executed on the Open Event - is it possible to return the value to the calling application?
 
Setting the JavaScript into the PDF:
objQPDF.PageJavaScriptAction("O", 'var pageNumber; pageNumber=this.pageNum + 1;')
 
Open the PDF document into a Browser:
objPDF.Object.Navigate("test.pdf#view=FitH&toolbar=1&scrollbar=1&navpanes=0")
 
Thank you for any insite,


Posted By: Rowan
Date Posted: 09 Mar 11 at 10:19AM
This is more of a general JavaScript + PDF question which should probably be asked on the http://forum.planetpdf.com/ - Planet PDF Forum . Quick PDF Library will let you insert this JavaScript into the PDF but as to whether or not the JavaScript that you're using will work in the different versions of Adobe Reader, Acrobat and other 3rd party PDF viewers is a question that the experts on the Planet PDF Forum should be able to help you with.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk