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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - problems in embedding JavaScript in PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

problems in embedding JavaScript in PDF

 Post Reply Post Reply
Author
Message
Ruturaaj View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Aug 09
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ruturaaj Quote  Post ReplyReply Direct Link To This Post Topic: problems in embedding JavaScript in PDF
    Posted: 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Ruturaaj View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Aug 09
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ruturaaj Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ruturaaj View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Aug 09
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ruturaaj Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
Ruturaaj View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Aug 09
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ruturaaj Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 09 at 4:26PM
BTW, I'm using Adobe Reader 9.2 to view the PDF.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 09 at 7:12PM
"...
Please check it out
..."

Hi!

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
Back to Top
Ruturaaj View Drop Down
Team Player
Team Player
Avatar

Joined: 12 Aug 09
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ruturaaj Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store