JavaScript in customs Dynamic Stamp not working
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
asimfaiz
- User
- Posts: 3
- Joined: Sat Nov 26, 2011 5:58 am
JavaScript in customs Dynamic Stamp not working
To whom it may concern;
I'm using the latest Pro version under Windows 7 Ultimate version (64 bit). I have created a customs stamps and have a short javascript written for it. The purpose is to have a dialogue box pop up before the stamp is placed. The dialogue box has multiple fields that the user will fill in and the stamp is then placed on the PDF document. The stamp with the Java script work perfect with Acrobat but it does not work under your program. I have tested another small js whihc worked fine but that was inly calling for one field and not multiple fields in a dialogue box. Attached to this e-mail a zipped TXT file with the complete javascript. PLease advise what am I doing wrong or what is your program JS engine not picking up.
I'm using the latest Pro version under Windows 7 Ultimate version (64 bit). I have created a customs stamps and have a short javascript written for it. The purpose is to have a dialogue box pop up before the stamp is placed. The dialogue box has multiple fields that the user will fill in and the stamp is then placed on the PDF document. The stamp with the Java script work perfect with Acrobat but it does not work under your program. I have tested another small js whihc worked fine but that was inly calling for one field and not multiple fields in a dialogue box. Attached to this e-mail a zipped TXT file with the complete javascript. PLease advise what am I doing wrong or what is your program JS engine not picking up.
You do not have the required permissions to view the files attached to this post.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: JavaScript in customs Dynamic Stamp not working
Thanks for the sample asimfaiz,
We are checking it and will advise a bit later directly here in the topic.
Best,
Stefan
We are checking it and will advise a bit later directly here in the topic.
Best,
Stefan
-
Ivan - Tracker Software
- Site Admin
- Posts: 3603
- Joined: Thu Jul 08, 2004 10:36 pm
Re: JavaScript in customs Dynamic Stamp not working
The current version of the viewer doesn't support JS dialogs. It should be implemented in V3 of the viewer.
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
asimfaiz
- User
- Posts: 3
- Joined: Sat Nov 26, 2011 5:58 am
Re: JavaScript in customs Dynamic Stamp not working
what is the anticipated date on the release of V3
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: JavaScript in customs Dynamic Stamp not working
Hello asimfaiz,
We are really very close to release, but unfortunately are not yet ready to announce an exact date. We will do so as soon as possible, but not before we are sure we can keep it this time, as we have given dates in the past which we weren't able to keep - so we'd rather not do it now.
Best,
Stefan
We are really very close to release, but unfortunately are not yet ready to announce an exact date. We will do so as soon as possible, but not before we are sure we can keep it this time, as we have given dates in the past which we weren't able to keep - so we'd rather not do it now.
Best,
Stefan
-
asimfaiz
- User
- Posts: 3
- Joined: Sat Nov 26, 2011 5:58 am
Re: JavaScript in customs Dynamic Stamp not working
Hello any progress on the issue of JS in dynamic stamps
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: JavaScript in customs Dynamic Stamp not working
Hello asimfaiz,
I've just spoken with Ivan and he told me that support for dynamic stamps is ready for the Editor and should be available in the next build.
Regards,
Stefan
I've just spoken with Ivan and he told me that support for dynamic stamps is ready for the Editor and should be available in the next build.
Regards,
Stefan
-
gebhardtf
- User
- Posts: 5
- Joined: Sun Jan 19, 2014 8:15 pm
Re: JavaScript in customs Dynamic Stamp not working
Has this been resolved?
I'm using V3 Build 307.0 from Dec 31, 2013. The problem with dynamic stamps still exists for me. We have a set of javascripts and dynamic stamps that work fine in Adobe. But in PDF Xchange the javscript runs, gets all the information via the dialog boxes and then fails to get the right stamp. It always defaults to the "Draft" stamp.
The javascript is located at C:\Users\%[user]\AppData\Roaming\Tracker Software\PDFXEditor\3.0\JavaScripts
and the stamps at C:\Users\%[user]\AppData\Roaming\Tracker Software\PDFXEditor\3.0\Stamps
The stamps show up perfectly fine in stamps palette. I have also tried to call other standard stamps like "Sold" via the javascript console. This failed similarly and always produced the "Draft" stamp.
Stamp properties like author, positioning, etc are set perfectly fine via javascript.
Any suggestions?
here is the simple javascript snippet:
var annot = this.addAnnot({
page: 0,
type: "Stamp",
author: "A. C. Robat",
name: "myStamp",
rect: [400, 400, 550, 500],
contents: "Try it again, this time with order and method!",
AP: "NotApproved" });
and the screenshots
I'm using V3 Build 307.0 from Dec 31, 2013. The problem with dynamic stamps still exists for me. We have a set of javascripts and dynamic stamps that work fine in Adobe. But in PDF Xchange the javscript runs, gets all the information via the dialog boxes and then fails to get the right stamp. It always defaults to the "Draft" stamp.
The javascript is located at C:\Users\%[user]\AppData\Roaming\Tracker Software\PDFXEditor\3.0\JavaScripts
and the stamps at C:\Users\%[user]\AppData\Roaming\Tracker Software\PDFXEditor\3.0\Stamps
The stamps show up perfectly fine in stamps palette. I have also tried to call other standard stamps like "Sold" via the javascript console. This failed similarly and always produced the "Draft" stamp.
Stamp properties like author, positioning, etc are set perfectly fine via javascript.
Any suggestions?
here is the simple javascript snippet:
var annot = this.addAnnot({
page: 0,
type: "Stamp",
author: "A. C. Robat",
name: "myStamp",
rect: [400, 400, 550, 500],
contents: "Try it again, this time with order and method!",
AP: "NotApproved" });
and the screenshots
You do not have the required permissions to view the files attached to this post.
---
regards
Frank
regards
Frank
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: JavaScript in customs Dynamic Stamp not working
Hi gebhardtf,
Thanks for the post - could you please try updating to build 307.1 and let us know if that helps:
https://www.pdf-xchange.com/PDFXVwer.zip
Thanks for the post - could you please try updating to build 307.1 and let us know if that helps:
https://www.pdf-xchange.com/PDFXVwer.zip
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
gebhardtf
- User
- Posts: 5
- Joined: Sun Jan 19, 2014 8:15 pm
Re: JavaScript in customs Dynamic Stamp not working
thanks - I have done that and re-tested. The result has not changed.
---
regards
Frank
regards
Frank
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: JavaScript in customs Dynamic Stamp not working
Hi gebhardtf,
Thanks for letting us know - this has been passed to the Dev. Team for further investigation.
We appreciate your patience and understanding here!
Cheers,
Thanks for letting us know - this has been passed to the Dev. Team for further investigation.
We appreciate your patience and understanding here!
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
gebhardtf
- User
- Posts: 5
- Joined: Sun Jan 19, 2014 8:15 pm
Re: JavaScript in customs Dynamic Stamp not working
Hi Will,
has the issue been confirmed and assigned a priority?
regards
Frank
has the issue been confirmed and assigned a priority?
regards
Frank
---
regards
Frank
regards
Frank
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: JavaScript in customs Dynamic Stamp not working
Hi gebhardtf,
The Development team has informed me that this issue had already been fixed, so you should be able to enjoy that as of the next build, to be released around the middle of February
Cheers,
The Development team has informed me that this issue had already been fixed, so you should be able to enjoy that as of the next build, to be released around the middle of February
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
gebhardtf
- User
- Posts: 5
- Joined: Sun Jan 19, 2014 8:15 pm
Re: JavaScript in customs Dynamic Stamp not working
excellent news! Looking forward to a copy for testing!
---
regards
Frank
regards
Frank
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: JavaScript in customs Dynamic Stamp not working
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
gebhardtf
- User
- Posts: 5
- Joined: Sun Jan 19, 2014 8:15 pm
Re: JavaScript in customs Dynamic Stamp not working
Will,
just noticed this forum is for the Viewer, I shall note we are using PDF-XChange Editor. But I guess the engine is the same.
Frank
just noticed this forum is for the Viewer, I shall note we are using PDF-XChange Editor. But I guess the engine is the same.
Frank
---
regards
Frank
regards
Frank
-
Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
Re: JavaScript in customs Dynamic Stamp not working
Hi gebhardtf,
No worries - I hadn't actually noticed that either, but I had gathered that you were referring to the Editor, from your initial post, so no worries
Cheers,
No worries - I hadn't actually noticed that either, but I had gathered that you were referring to the Editor, from your initial post, so no worries
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com