summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-07-02 06:05:34 +0900
committerNorbert Preining <norbert@preining.info>2021-07-02 06:05:34 +0900
commita11f29f9bea623fc9f9482bc28f566ebd11310e7 (patch)
treec55831ecab2c782208fa2e3cd530dd63725b4d27
parent6b7ef024ba8f7c1560c7347a072db848c3555541 (diff)
acrotex-js update
-rw-r--r--texmf-dist/doc/latex/acrotex-js/README.md4
-rw-r--r--texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdfbin396417 -> 393853 bytes
-rw-r--r--texmf-dist/doc/latex/acrotex-js/acrotex-js.pdfbin213534 -> 218642 bytes
-rw-r--r--texmf-dist/doc/latex/acrotex-js/js-files/aeb-reader.js50
-rw-r--r--texmf-dist/doc/latex/acrotex-js/js-files/aeb_pro.js11
-rw-r--r--texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdfbin47782 -> 47856 bytes
-rw-r--r--texmf-dist/doc/latex/acrotex-js/js-test/test_install.tex1
-rw-r--r--texmf-dist/source/latex/acrotex-js/acrotex-js.dtx15
-rw-r--r--texmf-dist/tex/latex/acrotex-js/acrotex-js.sty2
9 files changed, 74 insertions, 9 deletions
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
--- a/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf
+++ b/texmf-dist/doc/latex/acrotex-js/acrobat-in-workflow.pdf
Binary files 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
--- a/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf
+++ b/texmf-dist/doc/latex/acrotex-js/acrotex-js.pdf
Binary files 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
--- a/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf
+++ b/texmf-dist/doc/latex/acrotex-js/js-test/test_install.pdf
Binary files 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("");
diff --git a/texmf-dist/source/latex/acrotex-js/acrotex-js.dtx b/texmf-dist/source/latex/acrotex-js/acrotex-js.dtx
index cf9af1fa..21c30910 100644
--- a/texmf-dist/source/latex/acrotex-js/acrotex-js.dtx
+++ b/texmf-dist/source/latex/acrotex-js/acrotex-js.dtx
@@ -14,7 +14,7 @@
%</copyright>
%<package>\NeedsTeXFormat{LaTeX2e}[1997/12/01]
%<package>\ProvidesPackage{acrotex-js}
-%<package> [2021/06/19 v1.1 acrotex-js: A library of JavaScript files (dps)]
+%<package> [2021/06/24 v1.2 acrotex-js: A library of JavaScript files (dps)]
%<*driver>
\documentclass{ltxdoc}
\usepackage[colorlinks,hyperindex=false]{hyperref}
@@ -70,6 +70,11 @@
% or \textsf{dvips \texttt{->} ps2pdf} workflow.\footnote{There is no harm in the routine installation of this
% file even if you don't use \app{Distiller} or \app{ps2pdf}.}
% \item \texttt{aeb\_pro.js}: Required by the \pkg{aeb\_pro}, \pkg{thorshammer}, and \pkg{docassembly} packages.
+% \item \texttt{aeb-reader.js}: This ia a JavaScript file that is used by the \pkg{thorshammer} package.\footnote
+% {See the documentation for the \pkg{thorshammer} package for more details.} It is
+% installed in the same location as \texttt{aeb.js} and \texttt{aeb\_pro.js}.
+% The file enhances the experience for users of \app{Adobe Reader}.
+%
% \end{itemize}
% In all cases, the JS files must be correctly installed for the above packages for them to perform as designed.
% Refer to \texttt{docs/install\_jsfiles.pdf} for installation instructions.
@@ -80,12 +85,16 @@
% \item \texttt{docs} folder: \texttt{acrotex-js.pdf} (documentation), \texttt{install\_jsfile.pdf}
% (installation instructions, and
% \texttt{acrobat-in-workflow.pdf} (commentary on using \app{Acrobat} in your workflow).
-% \item \texttt{js-files}: \texttt{aeb.js}, \texttt{aeb\_pro.js} (These are the JS files to be installed,
-% follow the instructions of \texttt{install\_jsfile.pdf} in the \texttt{docs} folder.
+% \item \texttt{js-files}: \texttt{aeb.js}, \texttt{aeb\_pro.js}, \texttt{aeb-reader.js}.
+% To install one or more of these files, follow the instructions
+% of \texttt{install\_jsfile.pdf} in the \texttt{docs} folder. The file \texttt{aeb-reader.js} is targeted
+% at \app{Adobe Reader} users and goes in the same location as the others. The functionality of \texttt{aeb-reader.js}
+% is included in that of \texttt{aeb\_pro.js}, so \emph{don't install them both} on the same computer, to avoid redundancy.
% \item \texttt{js-test}: \texttt{test\_install.pdf} (After installing the JS files, test whether you've
% understood and following the instructions correctly, open this file in \app{Acrobat} and follow instructions
% contained therein.)
% \end{itemize}
+% \changes{v1.2}{2021/06/24}{\string\texttt{aeb\_pro.js}, version 1.6.2, and \string\texttt{aeb-reader.js}, version 1.0.}
% \changes{v1.1}{2021/06/19}{Moved \string\texttt{test\_install.pdf} and \string\texttt{acrobat-in-workflow.pdf}
% to this package from others}
% \changes{v1.0}{2021/06/18}{First publication version}
diff --git a/texmf-dist/tex/latex/acrotex-js/acrotex-js.sty b/texmf-dist/tex/latex/acrotex-js/acrotex-js.sty
index 65c69595..4ae121cc 100644
--- a/texmf-dist/tex/latex/acrotex-js/acrotex-js.sty
+++ b/texmf-dist/tex/latex/acrotex-js/acrotex-js.sty
@@ -19,7 +19,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1997/12/01]
\ProvidesPackage{acrotex-js}
- [2021/06/19 v1.1 acrotex-js: A library of JavaScript files (dps)]
+ [2021/06/24 v1.2 acrotex-js: A library of JavaScript files (dps)]
\endinput
%%
%% End of file `acrotex-js.sty'.