From a11f29f9bea623fc9f9482bc28f566ebd11310e7 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 2 Jul 2021 06:05:34 +0900 Subject: acrotex-js update --- texmf-dist/doc/latex/acrotex-js/README.md | 4 +- .../doc/latex/acrotex-js/acrobat-in-workflow.pdf | Bin 396417 -> 393853 bytes texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf | Bin 213534 -> 218642 bytes .../doc/latex/acrotex-js/js-files/aeb-reader.js | 50 +++++++++++++++++++++ .../doc/latex/acrotex-js/js-files/aeb_pro.js | 11 +++-- .../doc/latex/acrotex-js/js-test/test_install.pdf | Bin 47782 -> 47856 bytes .../doc/latex/acrotex-js/js-test/test_install.tex | 1 + 7 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 texmf-dist/doc/latex/acrotex-js/js-files/aeb-reader.js (limited to 'texmf-dist/doc') diff --git a/texmf-dist/doc/latex/acrotex-js/README.md b/texmf-dist/doc/latex/acrotex-js/README.md index 90c06a1c..c5825dac 100644 --- a/texmf-dist/doc/latex/acrotex-js/README.md +++ b/texmf-dist/doc/latex/acrotex-js/README.md @@ -1,6 +1,6 @@ The acrotex-js Package Author: D. P. Story -Dated: 2021-06-19 +Dated: 2021-06-24 In the distribution of this package are two critical JavaScript files (aeb.js and aeb_pro.js) used by the packages insdljs, aeb_pro, thorshammer, and @@ -8,6 +8,8 @@ docassembly. Previously these JS files where distributed with the individual packages, now they are distributed by this package and must be installed according to the instructions in the docs folder. +What's New (2021-06-24) Version 1.6.2 of aeb_pro.js and Version 1.0 of aeb-reader.js + What's New (2021-06-19) Move certain files from other packages: acrobat-in-workflow.pdf and test_install.pdf diff --git a/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf b/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf index 4dc7dda7..d6ddca94 100644 Binary files a/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf and b/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf differ diff --git a/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf b/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf index a26c51bf..d0570285 100644 Binary files a/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf and b/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf differ diff --git a/texmf-dist/doc/latex/acrotex-js/js-files/aeb-reader.js b/texmf-dist/doc/latex/acrotex-js/js-files/aeb-reader.js new file mode 100644 index 00000000..87783f86 --- /dev/null +++ b/texmf-dist/doc/latex/acrotex-js/js-files/aeb-reader.js @@ -0,0 +1,50 @@ +/* + AEB Adobe Acrobat Reader JavaScript Methods + + Copyright (C) 2019 AcroTeX.Net + D. P. Story + http://www.acrotex.net + + Version 1.0 +*/ +// console.println("Version 1.0 (Reader DC)"); +if ( typeof aebTrustedFunctions == "undefined") { + aebTrustedFunctions = app.trustedFunction( function ( doc, oFunction, oArgs ) + { + app.beginPriv(); + var retn = oFunction( oArgs, doc ); + app.endPriv(); + return retn; + }); +} +aebSaveAs = app.trustPropagatorFunction( function ( oArgs, doc ) +{ + app.beginPriv(); + app.execMenuItem("Save"); + app.endPriv(); +}); +aebDocSaveAs = app.trustPropagatorFunction( function ( oArgs, doc ) +{ + var Msg=function(e){return (aebDocSaveAs.msg==undefined)?("Doc SaveAs Error: " + e.toString()):aebDocSaveAs.msg;} + var Action=function(){return ((aebDocSaveAs.action==undefined)?null:eval(aebDocSaveAs.action));} + app.beginPriv(); + try { + return retn = doc.saveAs(oArgs); + } catch(e){console.println(Msg(e));Action();} + app.endPriv(); + aebDocSaveAs.msg=undefined; + aebDocSaveAs.action=undefined; +}); +aebBrowseForDoc = app.trustPropagatorFunction( function ( oArgs ) +{ + app.beginPriv(); + return retn = app.browseForDoc(oArgs); + app.endPriv(); +}); +aebLaunchURL=app.trustPropagatorFunction ( function ( oArgs ) +{ + app.beginPriv(); + var retn = app.launchURL(oArgs); + app.endPriv(); +}); + diff --git a/texmf-dist/doc/latex/acrotex-js/js-files/aeb_pro.js b/texmf-dist/doc/latex/acrotex-js/js-files/aeb_pro.js index 5dbfe4d5..24fbcdaf 100644 --- a/texmf-dist/doc/latex/acrotex-js/js-files/aeb_pro.js +++ b/texmf-dist/doc/latex/acrotex-js/js-files/aeb_pro.js @@ -5,8 +5,9 @@ D. P. Story http://www.acrotex.net - Version 1.6.1 + Version 1.6.2 + v1.6.2 Modified aebDocSaveAs for thorshammer v1.6.1 aebCreateTemplate now returns an object v1.6 Added aebAddWatermarkFromText, aebLaunchURL v1.5 Added aebCertifyInvisibleSign @@ -76,16 +77,18 @@ aebSaveAs = app.trustPropagatorFunction( function ( oArgs, doc ) app.execMenuItem("Save"); app.endPriv(); }); +// Version 1.7.2 aebDocSaveAs = app.trustPropagatorFunction( function ( oArgs, doc ) { var Msg=function(e){return (aebDocSaveAs.msg==undefined)?("Doc SaveAs Error: " + e.toString()):aebDocSaveAs.msg;} + var Action=function(){return ((aebDocSaveAs.action==undefined)?null:eval(aebDocSaveAs.action));} app.beginPriv(); try { - return doc.saveAs(oArgs); - } catch(e){console.println(Msg(e));} + return retn = doc.saveAs(oArgs); + } catch(e){console.println(Msg(e));Action();} app.endPriv(); aebDocSaveAs.msg=undefined; - + aebDocSaveAs.action=undefined; }); aebExtractPages = app.trustPropagatorFunction( function ( oArgs, doc ) { diff --git a/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf b/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf index c2b92f25..cd7e28c8 100644 Binary files a/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf and b/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf differ diff --git a/texmf-dist/doc/latex/acrotex-js/js-test/test_install.tex b/texmf-dist/doc/latex/acrotex-js/js-test/test_install.tex index 72af3a51..a21f7a39 100644 --- a/texmf-dist/doc/latex/acrotex-js/js-test/test_install.tex +++ b/texmf-dist/doc/latex/acrotex-js/js-test/test_install.tex @@ -26,6 +26,7 @@ if ( typeof aebImportAnFDF == "function" ) { } \end{defineJS} \begin{defineJS}{\isAddWatermarkFromFileKnown} +console.clear(); console.show(); if ( typeof aebAddWatermarkFromFile == "function" ) { app.beep(0); console.println(""); -- cgit v1.2.3