Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
problems in embedding JavaScript in PDF |
Post Reply
|
| Author | |
Ruturaaj
Team Player
Joined: 12 Aug 09 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Topic: problems in embedding JavaScript in PDFPosted: 18 Nov 09 at 6:58AM |
|
Hi!
Currently working on a project in which I need to write some JavaScript for several different document events. I could successfully set the alert window for "document open" in event. however, when I try to embed multi-line JavaScript, the Quick PDF library fails to perform the task. No JavaScript is added to PDF. Furthermore I'm not at all able to use other functions related to the document action events of PDF. It is always been frustrating to see no real good examples demonstrate different functions of this DLL. Is there anybody who has done this or anything similar to this before? I'm writing this code in Visual Basic 6.0 programming language. Eagerly waiting for your reply... Thanks and best regards, Ruturaaj. |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 8:46AM |
|
Hi!
Perhaps the older post from Chicks can help a bit: http://www.quickpdf.org/forum/missing-images-from-rendered-pdf_topic392_post1722.html?KW=java+script+event#1722 In the QuickPDF-library-demo there's also a small sample... Cheers, Ingo |
|
![]() |
|
Ruturaaj
Team Player
Joined: 12 Aug 09 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 3:34PM |
|
Thanks for your reply. I will try the code posted on mentioned link.
You said, there is a small sample in Demo of Library. I'm sorry, I must have missed it. Can you please tell me under which programming language? |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 4:04PM |
|
Hi!
I mean the demo-app from Debenu to give a first impression about what you can do with the lib. I think i've posted the link in the general section here in a thread like "first steps" or something similar... I'm out of office now. Cheers, Ingo |
|
![]() |
|
Ruturaaj
Team Player
Joined: 12 Aug 09 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 4:22PM |
|
Just tested the code for Printing and it worked; but when I attempted to add the same JavaScript to the Document Close action via DocJavaScriptAction function. I used "DC" for action parameter.The thing is actually no JavaScript is getting added to the Document Close event. I've NitroPDF installed on my machine and I opened the resulting PDF in NitroPDF. It has "Forms" tab where it shows all document level javascripts. I'm not able to see my JavaScript code there; so I think no JavaScript is added to the Document Close event or at least it's not compatible with the PDF Standards and definitions.
Please check it out. Add simple Alert on Document Close event ... oQP.DocJavaScriptAction "DC", "app.alert('Thanks for reading this PDF.');" This code didn't work for me ... let me know if you get any better results... |
|
![]() |
|
Ruturaaj
Team Player
Joined: 12 Aug 09 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 4:26PM |
|
BTW, I'm using Adobe Reader 9.2 to view the PDF.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 7:12PM |
|
"... Please check it out ..." Sorry, but i think we won't check it out. Seems that nobody from the users here has enough experiences in this case so you should post your probs on the official support-pages. Please have a look at my thread in the general section: Cheers, Ingo
Edited by Ingo - 18 Nov 09 at 7:13PM |
|
![]() |
|
Ruturaaj
Team Player
Joined: 12 Aug 09 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 09 at 9:25PM |
|
thanks for your reply and continued effort to help me resolve my issue. I will post my query to the official support staff. In case if they solve my problem then I will surely come back here and post my solution for all members of this forum.
Once again, thanks so much Ingo for your interest! |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store