Page 1 of 1

javascripts in PDF

Posted: Mon Jul 08, 2013 10:37 pm
by luis ferreira
Hi
I've created a PDF invoice withe PDF-XChange Viewer Pro and need a box to sum, automatically, the total of € in the different boxes of the items.
Is it possible to ad a javascript to that box using PDF-XChange Viewer Pro 2.5.211?
If sou how can I do it?
Regards
Luis

Re: javascripts in PDF

Posted: Tue Jul 09, 2013 11:05 am
by Ivan - Tracker Software
Using the Viewer you cannot create form field, so, if you do not have form fields in your document, I'm afraid it cannot be done.

The Viewer doesn't allow to modify properties (including actions) for a form fields, but you can modify them using JS via JS console (Ctrl+J shortcut).

Re: javascripts in PDF

Posted: Tue Jul 09, 2013 7:27 pm
by luis ferreira
OK
Normally I use Scribus for this purpose, but always get huge PDf documents!
So, I'm looking for a alternative.
Thank you.
Best regards
Luís

P.S.
(of topic) Any news about a Android version of the DF-XChange Viewer :wink:

Re: javascripts in PDF

Posted: Tue Jul 09, 2013 8:29 pm
by Paul - Tracker Supp
Hi Luis,

as to your question about Android, it's still being discussed but it is still a long way off I'm afraid.

Re: javascripts in PDF

Posted: Tue Jul 09, 2013 9:55 pm
by luis ferreira
Ok I'll keep waiting.
Thanks

Re: javascripts in PDF

Posted: Tue Jul 09, 2013 10:04 pm
by Paul - Tracker Supp
:)

Re: javascripts in PDF

Posted: Tue Aug 23, 2016 5:02 am
by cj_helpdesk
Hello,

I am trying to create a dropdown calendar in pdf xchange pro version 6. Is it possible to import a javascript that will do this for the version that I have?

Thanks for your help.

Re: javascripts in PDF

Posted: Wed Aug 24, 2016 7:12 pm
by Willy Van Nuffel
I think I found something interesting for you ...

http://www.pdfscripting.com/public/Free ... lendar.pdf

You can download this PDF,
by doing a right mouse click on the URL/hyperlink and click "Save Target As" (IE11) or "Save Link As" (Google Chrome).

Take care: I do not know if you can use or copy the code for free ...
I would say, that is up to you to verify ...
In either case, you can probably learn something from it ...

You can see the Javacode (when the PDF is opened) via File > Document Properties > JavaScript
To view the Javacode that is connected with the datepicker-form-object(s), you have to click the "Edit Form" icon and then look into the properties of that object, at Actions > Mouse Up, where you can click "..." besides "Run a JavaScript".

Best regards.

Re: javascripts in PDF

Posted: Thu Aug 25, 2016 10:25 pm
by Paul - Tracker Supp
Thanks for that Willy,

cj - did you get this sorted or are you still looking for help?