I have about 50 forms with very similar JS-code, and I took "All Javascripts", modified it in an editor, pasted it back and ... ... all single code-snippet were unchanged.
My questions are:
- "All Javascripts" is the collection of all single scripts?
- Is something special to consider when I modify "All Javascripts"?
Thanks for Advice!
"All Javascripts" versus single Scripts
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Paul - PDF-XChange, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Peter2
- User
- Posts: 979
- Joined: Mon Sep 13, 2010 10:09 am
"All Javascripts" versus single Scripts
PDF-X-Change Pro German
-
Ivan - Tracker Software
- Site Admin
- Posts: 3620
- Joined: Thu Jul 08, 2004 10:36 pm
Re: "All Javascripts" versus single Scripts
"All JavaScripts" collects JavaScript from all possible locations in a PDF (JS actions for bookmarks, links, form fields, document actions, etc.) and combines it into a single JS "file", using special separators as comments. When editing is finished, modified code will replace the original code in the corresponding action.
If you have a case where that does not work, please send us a sample file and steps to reproduce the issue.
If you have a case where that does not work, please send us a sample file and steps to reproduce the issue.
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.
-
Peter2
- User
- Posts: 979
- Joined: Mon Sep 13, 2010 10:09 am
Re: "All Javascripts" versus single Scripts
Hi Ivan,
it seems that the problem is "pasted code". The attached PDF has a simple "hello World" code. When it's modified via Editor or via "All javascripts" (e.g. to "Hello world again".. ) its OK.
But when I copy the entire code to an Editor (Ultra Edit), modify it there and paste it back, then the modifications are ignored.
it seems that the problem is "pasted code". The attached PDF has a simple "hello World" code. When it's modified via Editor or via "All javascripts" (e.g. to "Hello world again".. ) its OK.
But when I copy the entire code to an Editor (Ultra Edit), modify it there and paste it back, then the modifications are ignored.
You do not have the required permissions to view the files attached to this post.
PDF-X-Change Pro German
-
Ivan - Tracker Software
- Site Admin
- Posts: 3620
- Joined: Thu Jul 08, 2004 10:36 pm
Re: "All Javascripts" versus single Scripts
I see where the problem is and will fix it in the next build.
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.
-
Peter2
- User
- Posts: 979
- Joined: Mon Sep 13, 2010 10:09 am
Re: "All Javascripts" versus single Scripts
Hi Ivan,
thanks for checking it. Maybe the "All javascripts" dialogue can be enriched with a minimum of editor-functionality: Search / search replace / ...
thanks for checking it. Maybe the "All javascripts" dialogue can be enriched with a minimum of editor-functionality: Search / search replace / ...
PDF-X-Change Pro German
-
Sean - PDF-XChange
- Site Admin
- Posts: 1515
- Joined: Wed Sep 14, 2016 5:42 pm
Re: "All Javascripts" versus single Scripts
Hi Peter,
Thanks for your input here—the development team will consider it when they come to resolving this issue.
Kind regards,
Thanks for your input here—the development team will consider it when they come to resolving this issue.
Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623