diff options
author | Norbert Preining <norbert@preining.info> | 2018-06-11 12:23:22 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2018-06-11 12:23:22 +0900 |
commit | 69aed6c627813afde6fb1983e8b673ed5b8ec0d5 (patch) | |
tree | 15ee93d167337a2629594c56e34cbf92d072d279 /texmf-dist | |
parent | 17e285e7733468f00b6e8d096fdd7ffe818f09c8 (diff) |
add aebenvelope
Diffstat (limited to 'texmf-dist')
22 files changed, 1031 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/aebenvelope/ReadMe.txt b/texmf-dist/doc/latex/aebenvelope/ReadMe.txt new file mode 100644 index 00000000..a67cc500 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/ReadMe.txt @@ -0,0 +1,29 @@ +The AeB Pro eEnvelope System (APES) + + +LaTeX package that uses the concept of an eEnvelope to attached +files. The system uses any one of four provided eEnvelope templates, +or can use a custom designed template. The AeB Pro package is +required to attach documents to the eEnvelope. The AeB Pro, hence +eEnvelope, requires Acrobat Pro, version 7.0 or later, and requires +the document author to create PDF using distiller. + +Be sure to get the latest aeb_pro.zip and acrotex.zip distributions +(in the latter case, all you need is acrotex_pack.zip) if you +already have installed the full distribution. + +Unzip within the aeb_pro folder, and the zip file should create an +aebEvelope folder with the package files within. Refresh you file +name database, as needed, and read the documentation and try the examples, +apeb1.tex, ape2.tex, ape3.tex and ape4.tex. + +Home page for this package is + +http://www.math.uakron.edu/~dpstory/aeb_pro.html + +Enjoy! + +Now, I must get back to my retirement. + +dps +05/17/07 diff --git a/texmf-dist/doc/latex/aebenvelope/aebenv_man.pdf b/texmf-dist/doc/latex/aebenvelope/aebenv_man.pdf Binary files differnew file mode 100644 index 00000000..e94829d8 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/aebenv_man.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps b/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps Binary files differnew file mode 100644 index 00000000..ebe2d125 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/AeST_Logo.eps diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps Binary files differnew file mode 100644 index 00000000..96fd2de7 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.eps diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf Binary files differnew file mode 100644 index 00000000..39159576 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex new file mode 100644 index 00000000..57322dd6 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/aebMyEnv.tex @@ -0,0 +1,108 @@ +\documentclass{article} +\usepackage{graphicx} +\usepackage[ + web={pro,usetemplates}, +]{aeb_pro} +\usepackage{calc} + +\begin{comment} + This document was used to create the custom eEnvelope, aebMyEnv.pdf. Here + we record the steps taken. + + 1. Found a "par avion" letter on Google and downloaded it + 2, Imported the par avion clip art into Acrobat and converted it to + pdf. Used the crop tool to crop the document show only the blue + background was showing. Did a "SaveAs" on the background as an + .eps file. Named the file airmail_bg.eps + 3. Found on the Internet the sizes of common envelopes and select + Monarch letter size: 7.5in x 3.875in. + 4. Created this document with the headers above, then set the page + size to + \margins{0pt}{0pt}{0pt}{0pt} + \screensize{3.875in}{7.5in} % height, width + which matches the size of the Monarch envelope. + 5. Use the airmail_bg.eps as a background, by inserting the + web command \template[hiresbb]{airmail_bg}. The background + did not quite fit due to rounding, so the highresbb was used. + The optional parameter for \template just passes the arguments + to the \includegraphics command. + 6. We use the \put command, which is part of the picture environment. + The picture environment is inserted by web package through the + usetemplates option. + 7. Using the "par avion" letter as a model---recalling that I have + little talent for design and no knowledge of colors---I used used LaTeX + commands to draw horizontal rules and vertical rules, leaving a 50pt x 50pt + box in the lower right corner. I also place some appropriate text on the + envelope, text that also appeared on the "par avion". My only original thought + was the little airplane that appears in the lower right corner. + 8. The file was compiled and converted to PDF. Now it is ready to be used as an + eEnvelope. + 9. Once in Acrobat, I saved the document, then did a SaveAs an .eps file. The + use of the file aebMyEnv.eps is explained in myEnv_demo.tex. + 10. The rest of the steps are contained in the demo file myEnv_demo.tex. +\end{comment} + + +\margins{0pt}{0pt}{0pt}{0pt} % left,right,top, bottom +\screensize{3.875in}{7.5in} % height, width + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={APES: Custom eEnvelope}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={Creating a custom eEnvelope for APES}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} + +\thispagestyle{empty} +\makeatletter +\let\strippt\strip@pt +\makeatother + +\newlength{\envLeni} + +\setlength{\envLeni}{\paperwidth-10pt} +\edef\myHorOffsetBlue{\strippt\envLeni} + +\setlength{\envLeni}{\paperwidth-18pt} +\edef\myHorOffsetRed{\strippt\envLeni} + +\setlength{\envLeni}{\paperwidth-50pt} +\edef\myHorRuleLenStrip{\strippt\envLeni} +\edef\myHorRuleLen{\the\envLeni} + +\setlength{\envLeni}{\paperheight-50pt} +\edef\myVertRuleLen{\the\envLeni} +\edef\myVertRuleLenStrip{\strippt\envLeni} + +\newcommand{\letterDesign} +{% + \noindent\put(415,228){\includegraphics[scale=.25]{AeST_Logo}}% + \put(0,0){\textcolor{red}{\rule{\myHorRuleLen}{10pt}}} + \put(0,14){\textcolor{webblue}{\rule{\myHorRuleLen}{4pt}}} + \put(\myHorOffsetBlue,50){\textcolor{webblue}{\rule{10pt}{\myVertRuleLen}}} + \put(\myHorOffsetRed,50){\textcolor{red}{\rule{4pt}{\myVertRuleLen}}} + \put(400,165){\sffamily\bfseries\large\textcolor{webblue}{VIA AIR MAIL}} + \put(400,145){\sffamily\bfseries\large\textcolor{red}{CORREO A\'{E}REO}} + \put(\myHorRuleLenStrip,0){\sffamily\bfseries\color{webblue}\kern10pt + \raisebox{15pt}{\shortstack[c]{PAR \textcolor{red}{\ding{040}}\\AVION}}} + +} +% +% Use airmail_bg for a background template +% +\template[hiresbb]{airmail_bg} +% +% use \letterDesign as an additional template. This template simply +% places various letter elements on the envelope. +% +\AddToTemplate{letterDesign} + +\begin{document}\strut\end{document} diff --git a/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps b/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps Binary files differnew file mode 100644 index 00000000..1644ae25 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/airmail_bg.eps diff --git a/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex b/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex new file mode 100644 index 00000000..3249e2b0 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/custom/myEnv_demo.tex @@ -0,0 +1,124 @@ +\documentclass{article} +\usepackage[ + web={pro,usetemplates}, + attachsource={tex}, + aebxmp +]{aeb_pro} +\usepackage[% + donotmail, + envelope=aebMyEnv.pdf, +% +% The path that follows needs to be edited to point to +% the location of the aebMyEnv.pdf on your system. +% + path2folder=/c/acrotex/acrotex/aebpro/aebenvelope/custom, +]{aeb_envelope} + +\setEnvDimensions{7.5in}{3.875in} + +\begin{comment} + These comments continue the description of how to create and use a custom + eEnvelope. See the source file aebMyEnv.tex for the instructions on how + the eEnvelope aebMyEnv.pdf was created. Now, we learn how to use the + eEnvelope. + 1. Place the file aebMyEnv.pdf anywhere on your hard drive and make + note of its location. It is best to place it in the envelopes folder + of the AeB eEnvelopes distribution, but there are some out there who + want to use their own personal folder. You'll not above that we specify + the envelope and the path2folder options. Since we are not using one + of the standard eEnvelopes, we specify the file name of the eEnvelope, + aebMyEnv.pdf, in this case. We also specify the path to the folder as + /c/acrotex/acrotex/aebpro/acroenvelope. + \usepackage[% + donotmail, + envelope=aebMyEnv.pdf, + path2folder=/c/acrotex/acrotex/aebpro/acroenvelope, + ]{aeb_envelope} + If you had put this file in the envelopes folder, then it would + not be necessary to specify the path2folder option. + 2. Since you created the eEnvelope, you know its dimensions. Specify these + dimensions using the \setEnvDimensions command of aeb_envelope. + \setEnvDimensions{7.5in}{3.875in} + See the file aebMyEnv.tex for these dimensions. We need the papersize + to match exactly the eEnvelope dimensions. + 3. Done past the \DeclareDocInfo (optional) and the \mailTo (required) you'll + see + \setAddressEnv + {% + \put(50,250){% + \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries + \displayAddr{From}\mailtoFrom + \end{minipage}}% + \put(200,130){% + \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries + \displayAddr{To}\mailtoName\\[1ex] + \displayAddr{Message}\mailtoMessageEnvelope + \end{minipage}}% + } + \setAddressEnv is a command whose argument includes some picture commands, \put + in this case. This \put commands place the various elements entered through + the \mailTo command on the envelope and in the mail dialog box. + + Where did the numbers in the \put commands come from? Well, that's where + \template{aebMyEnv} comes in. Down below, you'll see that this command is + commented out. I had this command uncommented, I latexed this file, and brought + the dvi file in my dvi previewer. Using my previewer's measuring device, I can + get rough numbers for the location of the address elements. That is what I did. + When I was happy with the placement, I commented it command out again. + 4. I believe that's about it. This is such a nice design, I should make it a + standard eEnvelope. What do you think? + 5. If you create an attractive eEnvelope, send it to me and, if it is worthy, + I'll incorporate it into this distribution. + 6. dpstory@acrotex.net +\end{comment} + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={The AeB Pro eEnvelope System (APES)}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={Demo APES: Using a custom eEnvelope}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} + +\mailTo +{ + UI=true, + ToName=J\"{u}rgen Gilg\\Member of the ASDT, + From={D. P. Story\\\href{http://www.acrotex.net}{AcroTeX.Net}\\\url{www.acrotex.net}}, + To=gilg@acrotex.net, + CC=dpstory@acrotex.net, +% BCC=gilg@acrotex.net, + Subject=Testing the AeB eEnvelope Delivery System, + MessageEnvelope={This is a custom envelope and is integrated into the AeB eEnvelope System.}, + MessageBody={% + This document and its attachments test the AeB Envelope + system for a custom design. Seems to work. Will write + down the steps used to create the new templates.\n\n + Open the PDF attachment, the documents you ordered are attached to it.\n\n + dps, dpstory@acrotex.net + }, +} + +\setAddressEnv +{% + \put(50,250){% + \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries + \displayAddr{From}\mailtoFrom + \end{minipage}}% + \put(200,130){% + \begin{minipage}[t]{2in}\parindent0pt\raggedright\sffamily\bfseries + \displayAddr{To}\mailtoName\\[1ex] + \displayAddr{Message}\mailtoMessageEnvelope + \end{minipage}}% +} + +%\template{aebMyEnv} + +\assembleEnvelope diff --git a/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope1.pdf b/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope1.pdf Binary files differnew file mode 100644 index 00000000..725f9b97 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope1.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope2.pdf b/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope2.pdf Binary files differnew file mode 100644 index 00000000..e49ecc28 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/envelopes/aebenvelope2.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/envelopes/template1.pdf b/texmf-dist/doc/latex/aebenvelope/envelopes/template1.pdf Binary files differnew file mode 100644 index 00000000..4f462fc6 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/envelopes/template1.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/envelopes/template2.pdf b/texmf-dist/doc/latex/aebenvelope/envelopes/template2.pdf Binary files differnew file mode 100644 index 00000000..678f5661 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/envelopes/template2.pdf diff --git a/texmf-dist/doc/latex/aebenvelope/examples/ape1.tex b/texmf-dist/doc/latex/aebenvelope/examples/ape1.tex new file mode 100644 index 00000000..8c9f0fc9 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/examples/ape1.tex @@ -0,0 +1,60 @@ +\documentclass{article} +\usepackage[ + web={pro,usetemplates}, + attachsource={tex}, +% attachments={<specify attachments>}, + aebxmp +]{aeb_pro} +\usepackage[envelope=aeb1,donotmail]{aeb_envelope} + +\begin{comment} +This is a general file for creating an eEnvelope, try each of the +standard values for the envelope key. Try the donotmail option as well. + +The options of aeb_envelope are + envelope=aeb1 | aeb2 | adobe1 | adobe2, + nodotmail, + path2folder=<path> % See ../custom/aebEnv_demo.tex for usage +\end{comment} + +% +% Documented in aeb_man.pdf of the AcroTeX eDucation Bundle (AeB) +% +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={The AeB Professional: The eEnvelope System}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={eEnvelope System of AeB Pro}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} + +% +% Documented in aebenv_man.pdf +% +\mailTo +{ + UI=true, + ToName=John Q. Public, + From={D. P. Story at \href{http://www.acrotex.net}{AcroTeX.Net}}, + To=<email recipient(s) address(es)>, +% CC=, +% BCC=, + Subject=Testing the AeB eEnvelope Delivery System, + MessageEnvelope={Attached to this PDF are the documents you ordered.}, + MessageBody={% + This is the latest communication from AcroTeX.Net.\n\n + Here, I use a Adobe eEnvelope and adapted the commands\n + Source files attached.\n\n + Open the PDF attachment, the documents you ordered are attached to it.\n\n + dps, dpstory@acrotex.net + }, +} + +\assembleEnvelope diff --git a/texmf-dist/doc/latex/aebenvelope/examples/ape2.tex b/texmf-dist/doc/latex/aebenvelope/examples/ape2.tex new file mode 100644 index 00000000..05fbd4bd --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/examples/ape2.tex @@ -0,0 +1,46 @@ +\documentclass{article} +\usepackage[ + web={pro,usetemplates},eforms, + attachsource={tex}, + attachments={aeb_envelope.dtx} +]{aeb_pro} +\usepackage[donotmail,envelope=adobe2]{aeb_envelope} + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={The eEnvelope System of AeB Pro}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={eEnvelope System of AeB Pro}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} +\DeclareInitView{windowoptions={showtitle}} + +\mailTo +{ + UI=true, + ToName=John Q. Public, + From={D. P. Story at \href{http://www.acrotex.net}{AcroTeX.Net}}, + To=<email addresses of recipient(s)>, +% CC=, +% BCC=, + Subject=Testing the AeB eEnvelope Delivery System, + MessageEnvelope={Attached to this PDF are the documents you ordered. + \toggleAttachmentsPanel{red}{Click to view attachments.}}, + MessageBody={% + This is the latest communication from AcroTeX.Net.\n\n + I've made a simple aeb_envelope package, and changed the method\n + of showing the text on the envelope; now I use the template feature.\n + Of course, the package is still under development.\n\n + Open the PDF attachment, the documents you ordered are attached to it.\n\n + dps, dpstory@acrotex.net + }, +} + +\assembleEnvelope diff --git a/texmf-dist/doc/latex/aebenvelope/examples/ape3.tex b/texmf-dist/doc/latex/aebenvelope/examples/ape3.tex new file mode 100644 index 00000000..2623a4c0 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/examples/ape3.tex @@ -0,0 +1,52 @@ +\documentclass{article} +\usepackage[ + web={pro,usetemplates}, + attachments={dearmom.pdf}, + linktoattachments, + eforms, + aebxmp +]{aeb_pro} +\usepackage[envelope=aeb1,donotmail]{aeb_envelope} + +\begin{attachmentNames} +\autolabelNum*{1}{The\u0020Pride\u0020o'\u0020Dundee} +\end{attachmentNames} + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={AeB Pro eEnvelope System (APES)}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={eEnvelope System of AeB Pro: Linking to an attachment}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} +\nocopyright + +\mailTo +{ + UI=true, + ToName=Mom, + From=D. P. Story, + To=<recipient(s) address>, +% CC=, +% BCC=, + Subject=Who or what is the Pride o' Dundee?, + MessageEnvelope={Who or What is the Pride o' Dundee? + Click to open the envelope: \ahyperref{attach1}{The Pride o' Dundee}}, + MessageBody={% + Juergen,\n\n + Enjoy!\n\n + Now, I must get back to my retirement!\n\n + dps\n + dpstory@acrotex.net\n + dpstory@uakron.edu + }, +} + +\assembleEnvelope diff --git a/texmf-dist/doc/latex/aebenvelope/examples/ape4.tex b/texmf-dist/doc/latex/aebenvelope/examples/ape4.tex new file mode 100644 index 00000000..b6737f63 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/examples/ape4.tex @@ -0,0 +1,65 @@ +\documentclass{article} +\usepackage[ + web={pro,usetemplates},eforms, + attachsource={tex}, +% attachments={<attachments list>} +]{aeb_pro} +\usepackage[donotmail]{aeb_envelope} + +\DeclareDocInfo +{ + university={\AcroTeX.Net}, + title={The AeB Professional: The eEnvelope System}, + author={D. P. Story, J. Gilg, S. Singer}, + email={dpstory@acrotex.net}, + subject={eEnvelope System of AeB Pro}, + talksite={\url{www.acrotex.net}}, + version={1.0}, + keywords={Adobe Acrobat, JavaScript, eEnvelope, AcroTeX}, + copyrightStatus=True, + copyrightNotice={Copyright (C) \the\year, D. P. Story}, + copyrightInfoURL={http://www.acrotex.net} +} + +\mailTo +{ + UI=true, + ToName=John Q. Public, + From={D. P. Story at \href{http://www.acrotex.net}{AcroTeX.Net}}, + To=<email recipient(s) address(es)>, +% CC=, +% BCC=, + Subject=AeB Pro eEnvelope System, + MessageEnvelope={Attached to this PDF are the documents you ordered.}, + MessageBody={% + This is the latest communication from AcroTeX.Net.\n\n + Open the PDF attachment, the documents you ordered are attached to it.\n\n + dps, dpstory@acrotex.net + }, +} + +\begin{comment} + This file illustrates how to modify one of the standard + addresses for the aeb1. The name of the commands, for aeb1, to + put the address on the envelope is \addressEnvAebi. We wish to + put buttons over the stamp that appears in the upper right + corner. We insert a roll over effect that displays the names of + the AcroTeX team. +\end{comment} + +\def\includeAuthors{\put(252,105){\mbox{% + \pushButton[\TU{D. P. Story}\BC{}\BG{}\W{1}\H{N}\S{S}]{Story}{16.3pt}{36pt}\kern1bp + \pushButton[\TU{Simon Singer}\BC{}\BG{}\W{1}\H{N}\S{S}]{Singer}{16.3pt}{36pt}\kern1bp + \pushButton[\TU{J\string\374rgen Gilg}\W{1}\BC{}\BG{}\H{N}\S{S}]{Gilg}{16.3pt}{36pt}% +}}} +% +% Save the old definition of \addressEnvAebi +% +\let\addressEnvAebiOld\addressEnvAebi +% +% Redefine \addressEnvAebi by including the old definition (\put commands) +% with additional \put commands in the form of \includeAuthors +% +\renewcommand{\addressEnvAebi}{\addressEnvAebiOld\includeAuthors} + +\assembleEnvelope diff --git a/texmf-dist/doc/latex/aebenvelope/examples/dearmom.pdf b/texmf-dist/doc/latex/aebenvelope/examples/dearmom.pdf Binary files differnew file mode 100644 index 00000000..e35066d8 --- /dev/null +++ b/texmf-dist/doc/latex/aebenvelope/examples/dearmom.pdf diff --git a/texmf-dist/source/latex/aebenvelope/aeb_envelope.dtx b/texmf-dist/source/latex/aebenvelope/aeb_envelope.dtx new file mode 100644 index 00000000..66fa194d --- /dev/null +++ b/texmf-dist/source/latex/aebenvelope/aeb_envelope.dtx @@ -0,0 +1,291 @@ +% \iffalse +%<*copyright> +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% aeb_envelope.sty package, 2007-05-14 %% +%% Copyright (C) 2006 D. P. Story %% +%% dpstory@acrotex.net %% +%% storyd@owc.edu %% +%% %% +%% This program can redistributed and/or modified under %% +%% the terms of the LaTeX Project Public License %% +%% Distributed from CTAN archives in directory %% +%% macros/latex/base/lppl.txt; either version 1 of the %% +%% License, or (at your option) any later version. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</copyright> +%<package>\NeedsTeXFormat{LaTeX2e} +%<package>\ProvidesPackage{aeb_envelope} +%<package> [2007/05/14 v1.0 AeB Pro eEnvelope (dps)] +%<*driver> +\documentclass{ltxdoc} +\usepackage[dviwindo,colorlinks,hyperindex]{hyperref} +\pdfstringdefDisableCommands{\let\\\textbackslash}% +\EnableCrossrefs \CodelineIndex +\OnlyDescription % comment out for implementation details +\begin{document} + \GetFileInfo{aeb_envelope.sty} + \title{The \textsf{AeB Pro eEnvelope} Package\texorpdfstring{\\}{: } + A member of the AeB Pro family} + \author{D. P. Story\\ + Email: \texttt{storyd@owc.edu}} + \date{processed \today} + \maketitle + \tableofcontents + \let\Email\texttt + \DocInput{aeb_envelope.dtx} + \PrintIndex +\end{document} +%</driver> +% \fi +% \section{Introduction} +% The \textsf{AeB Pro eEnvelope} package (a.k.a. \texttt{aeb\_envelope}) is a package for creating +% electronic envelopes (some designs provided, courtesy Adobe and AcroTeX.Net), and some instructions +% for creating your own are provided in the documentation. The AeB Pro package is essential for attach +% your documents to the envelope. After attachment, a mail dialog opens and you are asked to sent + % the eEnvelope out to your recipients. +% \begin{macrocode} +%<*package> +\RequirePackage{xkeyval} +% \end{macrocode} +% \begin{macro}{donotmail} +% Do not mail this eEnvelope immediately. The default is to mail immediately. +% \begin{macrocode} +\DeclareOptionX{donotmail}{\def\mailitNow{false}} +\def\mailitNow{true} +% \end{macrocode} +% \end{macro} +% \begin{macro}{path2folder} +% The path to the folder that contains the eEnvelope templates. Not needed if you use +% the set the envelope.cfg file to the path to the envelopes folder. +% \begin{macrocode} +\DeclareOptionX{path2folder}{\def\aebEnvPath{#1}} +\def\aebEnvPath{/C} +% \end{macrocode} +% \end{macro} +% \begin{macro}{envelope} +% The \texttt{envelope} option is used to select any of the four supplied envelopes: \texttt{aeb1}, +% \texttt{aeb2}, \texttt{adobe1} and \texttt{adobe2}. the default is \texttt{aeb1}. +% \begin{macrocode} +\define@choicekey+{aeb_envelope.sty}{envelope}[\val\nr]{aeb1,aeb2,adobe1,adobe2} +{% + \ifcase\nr\relax + \def\pathtoEnv{\aebEnvPath/aebenvelope1.pdf} + \def\addressEnv{\addressEnvAebi} + \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}% + \screensize{50mm}{112mm}} + \or + \def\pathtoEnv{\aebEnvPath/aebenvelope2.pdf} + \def\addressEnv{\addressEnvAebii} + \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}% + \screensize{50mm}{112mm}} + \or + \def\pathtoEnv{\aebEnvPath/template1.pdf} + \def\addressEnv{\addressEnvAdobei} + \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}% + \screensize{135.5mm}{212.7mm}} + \or + \def\pathtoEnv{\aebEnvPath/template2.pdf} + \def\addressEnv{\addressEnvAdobeii} + \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}% + \screensize{120mm}{250mm}} + \fi +}{\PackageWarning{aeb_envelope}{% + Bad choice for the envelope, permissible values\MessageBreak + are aeb1,aeb2,adobe1 and adobe2.\MessageBreak + Assuming a custom envelope, \val.\MessageBreak + Be sure to set the values of \string\addressEnv\MessageBreak + and \string\aebenvDimensions}% + \def\pathtoEnv{\aebEnvPath/\val}% +} +% \end{macrocode} +% \end{macro} +% Set the defaults for the \texttt{envelope} option. If the user specifies \texttt{path2folder}, +% this choice overrides the configuration file. +% \begin{macrocode} +\def\pathtoEnv{\aebEnvPath/aebenvelope1.pdf} +% \end{macrocode} +% \begin{macro}{\setAddressEnv} +% \begin{macro}{\setEnvDimensions} +% These are two convenience commands to be used by anyone who want to create +% and use their own eEnvelope. Use \cs{setAddressEnv} to place the elements +% of the envelope; and \cs{setEnvDimensions} to set the dimensions of the papersize +% to match the dimensions of the eEnvelope. +% +% The argument of \cs{setAddressEnv} should be \cs{put} commands, similar to the +% definitions of \cs{addressEnvAebi}, \cs{addressEnvAebii}, \cs{addressEnvAdobei} +% or \cs{addressEnvAdobeii}. +% \begin{macrocode} +\newcommand{\setAddressEnv}[1]{\def\addressEnv{\noindent#1}} +\def\addressEnv{\addressEnvAebi} +\newcommand{\setEnvDimensions}[2]% #1 = width, #2 = height + {\def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}% + \screensize{#2}{#1}}} +\setEnvDimensions{112mm}{50mm} +% \end{macrocode} +% \end{macro} +% \end{macro} +% Get the configuration file, if it exists. The +% \begin{macrocode} +\InputIfFileExists{envelope.cfg}{}{} +\ProcessOptionsX +\RequirePackage{graphicx} +\RequirePackage{aeb_pro} +% \end{macrocode} +% \section{Main Macro Code} +% eEnvelope! +% \begin{macro}{\mailTo} +% The main data structure for setting the parameters of the eEnvelope, +% \begin{macrocode} +\define@boolkey{mailto}[mailto]{UI}[true]{} +\define@key{mailto}{ToName}{\def\mailtoName{#1}} +\define@key{mailto}{From}{\def\mailtoFrom{#1}} +\define@key{mailto}{To}{\def\mailtoEmail{#1}} +\define@key{mailto}{path}{\def\pathtoEnv{#1}} +\define@key{mailto}{CC}{\def\mailtoCC{#1}} +\define@key{mailto}{BCC}{\def\mailtoBCC{#1}} +\define@key{mailto}{Subject}{\def\mailtoSubject{#1}} +\define@key{mailto}{MessageEnvelope}{\def\mailtoMessageEnvelope{#1}} +\define@key{mailto}{MessageBody}{\def\mailtoMessageBody{#1}} +\mailtoUItrue +\def\mailtoUI{\ifmailtoUI true\else false\fi} +\let\mailtoName\@empty +\let\mailtoEmail\@empty +\let\mailtoCC\@empty +\let\mailtoBCC\@empty +\let\mailtoSubject\@empty +\let\mailtoMessageEnvelope\@empty +\let\mailtoMessageBody\@empty +% \end{macrocode} +% With the preliminaries of defining the parameters, here is the defiinition +% of \cs{mailTo}. +% \begin{macrocode} +\newcommand\mailTo[1]{\setkeys{mailto}{#1}} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\toggleAttachmentsPanel} +% A convenience command that toggles the attachments panel. The first parameter +% is the color of the text, the second parameter is the text. Sample usage +% \verb!\toggleAttachmentsPanel{red}{Click to view attachments}! +% If user does not have eforms loaded, then this command just typesets the text +% rather than creating a link with action. +% \begin{macrocode} +\@ifpackageloaded{eforms} +{ + \providecommand{\toggleAttachmentsPanel}[2]{% + \setLinkText[\Border{0 0 0}\A{/N/ShowHideFileAttachment/S/Named}] + {\textcolor{#1}{#2}}}% +}{% + \providecommand{\toggleAttachmentsPanel}[2]{\textcolor{#1}{#2}}% +} +% \end{macrocode} +% \end{macro} +% \begin{macrocode} +\def\displayAddr#1{\makebox[0pt][r]{\makebox[.6in][r]{#1:}\enspace}\ignorespaces} +% \end{macrocode} +% \begin{macro}{\addressEnvAebi} +% \begin{macro}{\addressEnvAebii} +% \begin{macro}{\addressEnvAdobei} +% \begin{macro}{\addressEnvAdobeii} +% The commands to put address info on the envelope, each correspond to +% the four envelope option: \texttt{aeb1}, \texttt{aeb2}, \texttt{adobe1} +% and \texttt{adobe2}, in that order. +% \begin{macrocode} +\newcommand{\addressEnvAebi} +{% + \noindent\put(125,60){% + \begin{minipage}[t]{2in}\parindent0pt\raggedright\small + \displayAddr{To}\mailtoName\\ + \displayAddr{From}\mailtoFrom\\ + \displayAddr{Message}\mailtoMessageEnvelope + \end{minipage}}% +} +\newcommand{\addressEnvAebii} +{% + \small + \noindent + \put(12,120){\mailtoFrom}% + \put(100,60){\makebox[0pt][r]{To:\enspace}\mailtoName}% + \put(100,45){\makebox[0pt][r] + {Message:\enspace}\parbox[t]{120pt} + {\raggedright\mailtoMessageEnvelope}}% +} +\newcommand{\addressEnvAdobei} +{% + \large + \noindent\put(32,160){\today}% + \put(32,120){\parbox[t]{540pt}{\mailtoMessageEnvelope}}% + \put(189,160){\mailtoName}% + \put(390,160){\mailtoFrom}% +} + +\newcommand{\addressEnvAdobeii} +{% + \Large + \noindent\put(334.5,90){\parbox[t]{250pt}{\mailtoMessageEnvelope}}% + \put(364,119){\mailtoName}% + \put(90,305){\mailtoFrom}% +} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% \begin{macro}{\assembleEnvelope} +% The end of the eEnvelope file must have this command, it replaces the +% \verb!\begin{document}! and \verb!\end{document}! environment. +% +% \texttt{envexecjs.def} inputs the doc assembly commands for inserting the background +% of the eEnvelope. +% \begin{macrocode} +\def\inputEnvExecJS{\InputIfFileExists{envexecjs.def}{}} +\newcommand{\assembleEnvelope} +{% + \par\aebenvDimensions + \setlength{\unitlength}{1pt}% + \AddToTemplate{addressEnv} + \inputEnvExecJS + \par\begin{document}\parskip0pt\strut\end{document} +} +% \end{macrocode} +% \end{macro} +% \begin{macrocode} +%</package> +%<*envexecjs> +% \end{macrocode} +% These are the after distill document assembly commands. We insert the +% eEnvelope file as background, we define the \texttt{mailItNow()} function to mail +% the package if the mail dialog is dismissed or if the document author +% used the \texttt{donotmail} option. Mail data is saved as a global variable +% \texttt{globa.oEmailArgs} that should be remembered by Acrobat until it is closed. +% \begin{macrocode} +\begin{execJS}{envexecjs} +global.oEmailArgs = { + bUI:\mailtoUI, + cTo: "\mailtoEmail", + cCc: "\mailtoCC", + cBcc: "\mailtoBCC", + cSubject: "\mailtoSubject", + cMsg: "\mailtoMessageBody" +}; +\addWatermarkFromFile({ + bOnTop:false, + cDIPath:"\pathtoEnv" +}); +function mailItNow() +{ + try { this.mailDoc(global.oEmailArgs) } catch(e) {} +} +console.println("mailItNow();"); +\executeSave(); +if ( \mailitNow\space) + aebTrustedFunctions(this, aebMailDoc, global.oEmailArgs); +\end{execJS} +% \end{macrocode} +% \begin{macrocode} +%</envexecjs> +%<*package> +\thispagestyle{empty} +%</package> +% \end{macrocode} +% \Finale +\endinput diff --git a/texmf-dist/source/latex/aebenvelope/aeb_envelope.ins b/texmf-dist/source/latex/aebenvelope/aeb_envelope.ins new file mode 100644 index 00000000..201f482a --- /dev/null +++ b/texmf-dist/source/latex/aebenvelope/aeb_envelope.ins @@ -0,0 +1,60 @@ +%% +%% This file will generate fast loadable files and documentation +%% driver files from the doc files in this package when run through +%% LaTeX or TeX. +%% +%% Copyright 1999-2006 D. P. Story +%% +%% This file is part of the `AcroTeX eDucation Bundle'. +%% ------------------------------------------- +%% +%% It may be distributed under the conditions of the LaTeX Project Public +%% License, either version 1.2 of this license or (at your option) any +%% later version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% --------------- start of docstrip commands ------------------ +%% +\def\filedate{2007/05/14} +\def\batchfile{aeb_envelope.ins} +% +\input docstrip +\ifx\generate\undefined + \Msg{**********************************************} + \Msg{*} + \Msg{* This installation requires docstrip} + \Msg{* version 2.4 or later.} + \Msg{*} + \Msg{* An older version of docstrip has been input} + \Msg{*} + \Msg{**********************************************} + \errhelp{Move or rename old docstrip.tex and get a newer one.} + \errmessage{Old docstrip in input path} + \batchmode + \csname @@end\endcsname\end +\fi + +\keepsilent +\askforoverwritefalse +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\preamble +\endpreamble +\generate +{% + \file{aeb_envelope.sty}{\from{aeb_envelope.dtx}{copyright,package}} + \file{envexecjs.def}{\from{aeb_envelope.dtx}{copyright,envexecjs}} +} + +\Msg{***************************************************************} +\Msg{*} +\Msg{* \space To finish the installation you have to copy the files } +\Msg{*} +\Msg{* \space *.sty, *.cfg and *.def into a directory searched by TeX} +\Msg{*} +\Msg{***************************************************************} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\endinput diff --git a/texmf-dist/source/latex/aebenvelope/envelope.cfg b/texmf-dist/source/latex/aebenvelope/envelope.cfg new file mode 100644 index 00000000..1873146f --- /dev/null +++ b/texmf-dist/source/latex/aebenvelope/envelope.cfg @@ -0,0 +1,2 @@ +\ExecuteOptionsX{path2folder={/C/AcroTeX/acrotex/aebpro/aebEnvelope/envelopes}} + diff --git a/texmf-dist/tex/latex/aebenvelope/aeb_envelope.sty b/texmf-dist/tex/latex/aebenvelope/aeb_envelope.sty new file mode 100644 index 00000000..0a8c2ee2 --- /dev/null +++ b/texmf-dist/tex/latex/aebenvelope/aeb_envelope.sty @@ -0,0 +1,148 @@ +%%
+%% This is file `aeb_envelope.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% aeb_envelope.dtx (with options: `copyright,package')
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% aeb_envelope.sty package, 2007-05-14 %%
+%% Copyright (C) 2006 D. P. Story %%
+%% dpstory@acrotex.net %%
+%% storyd@owc.edu %%
+%% %%
+%% This program can redistributed and/or modified under %%
+%% the terms of the LaTeX Project Public License %%
+%% Distributed from CTAN archives in directory %%
+%% macros/latex/base/lppl.txt; either version 1 of the %%
+%% License, or (at your option) any later version. %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{aeb_envelope}
+ [2007/05/14 v1.0 AeB Pro eEnvelope (dps)]
+ % the eEnvelope out to your recipients.
+\RequirePackage{xkeyval}
+\DeclareOptionX{donotmail}{\def\mailitNow{false}}
+\def\mailitNow{true}
+\DeclareOptionX{path2folder}{\def\aebEnvPath{#1}}
+\def\aebEnvPath{/C}
+\define@choicekey+{aeb_envelope.sty}{envelope}[\val\nr]{aeb1,aeb2,adobe1,adobe2}
+{%
+ \ifcase\nr\relax
+ \def\pathtoEnv{\aebEnvPath/aebenvelope1.pdf}
+ \def\addressEnv{\addressEnvAebi}
+ \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}%
+ \screensize{50mm}{112mm}}
+ \or
+ \def\pathtoEnv{\aebEnvPath/aebenvelope2.pdf}
+ \def\addressEnv{\addressEnvAebii}
+ \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}%
+ \screensize{50mm}{112mm}}
+ \or
+ \def\pathtoEnv{\aebEnvPath/template1.pdf}
+ \def\addressEnv{\addressEnvAdobei}
+ \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}%
+ \screensize{135.5mm}{212.7mm}}
+ \or
+ \def\pathtoEnv{\aebEnvPath/template2.pdf}
+ \def\addressEnv{\addressEnvAdobeii}
+ \def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}%
+ \screensize{120mm}{250mm}}
+ \fi
+}{\PackageWarning{aeb_envelope}{%
+ Bad choice for the envelope, permissible values\MessageBreak
+ are aeb1,aeb2,adobe1 and adobe2.\MessageBreak
+ Assuming a custom envelope, \val.\MessageBreak
+ Be sure to set the values of \string\addressEnv\MessageBreak
+ and \string\aebenvDimensions}%
+ \def\pathtoEnv{\aebEnvPath/\val}%
+}
+\def\pathtoEnv{\aebEnvPath/aebenvelope1.pdf}
+\newcommand{\setAddressEnv}[1]{\def\addressEnv{\noindent#1}}
+\def\addressEnv{\addressEnvAebi}
+\newcommand{\setEnvDimensions}[2]% #1 = width, #2 = height
+ {\def\aebenvDimensions{\margins{0pt}{0pt}{0pt}{0pt}%
+ \screensize{#2}{#1}}}
+\setEnvDimensions{112mm}{50mm}
+\InputIfFileExists{envelope.cfg}{}{}
+\ProcessOptionsX
+\RequirePackage{graphicx}
+\RequirePackage{aeb_pro}
+\define@boolkey{mailto}[mailto]{UI}[true]{}
+\define@key{mailto}{ToName}{\def\mailtoName{#1}}
+\define@key{mailto}{From}{\def\mailtoFrom{#1}}
+\define@key{mailto}{To}{\def\mailtoEmail{#1}}
+\define@key{mailto}{path}{\def\pathtoEnv{#1}}
+\define@key{mailto}{CC}{\def\mailtoCC{#1}}
+\define@key{mailto}{BCC}{\def\mailtoBCC{#1}}
+\define@key{mailto}{Subject}{\def\mailtoSubject{#1}}
+\define@key{mailto}{MessageEnvelope}{\def\mailtoMessageEnvelope{#1}}
+\define@key{mailto}{MessageBody}{\def\mailtoMessageBody{#1}}
+\mailtoUItrue
+\def\mailtoUI{\ifmailtoUI true\else false\fi}
+\let\mailtoName\@empty
+\let\mailtoEmail\@empty
+\let\mailtoCC\@empty
+\let\mailtoBCC\@empty
+\let\mailtoSubject\@empty
+\let\mailtoMessageEnvelope\@empty
+\let\mailtoMessageBody\@empty
+\newcommand\mailTo[1]{\setkeys{mailto}{#1}}
+\@ifpackageloaded{eforms}
+{
+ \providecommand{\toggleAttachmentsPanel}[2]{%
+ \setLinkText[\Border{0 0 0}\A{/N/ShowHideFileAttachment/S/Named}]
+ {\textcolor{#1}{#2}}}%
+}{%
+ \providecommand{\toggleAttachmentsPanel}[2]{\textcolor{#1}{#2}}%
+}
+\def\displayAddr#1{\makebox[0pt][r]{\makebox[.6in][r]{#1:}\enspace}\ignorespaces}
+\newcommand{\addressEnvAebi}
+{%
+ \noindent\put(125,60){%
+ \begin{minipage}[t]{2in}\parindent0pt\raggedright\small
+ \displayAddr{To}\mailtoName\\
+ \displayAddr{From}\mailtoFrom\\
+ \displayAddr{Message}\mailtoMessageEnvelope
+ \end{minipage}}%
+}
+\newcommand{\addressEnvAebii}
+{%
+ \small
+ \noindent
+ \put(12,120){\mailtoFrom}%
+ \put(100,60){\makebox[0pt][r]{To:\enspace}\mailtoName}%
+ \put(100,45){\makebox[0pt][r]
+ {Message:\enspace}\parbox[t]{120pt}
+ {\raggedright\mailtoMessageEnvelope}}%
+}
+\newcommand{\addressEnvAdobei}
+{%
+ \large
+ \noindent\put(32,160){\today}%
+ \put(32,120){\parbox[t]{540pt}{\mailtoMessageEnvelope}}%
+ \put(189,160){\mailtoName}%
+ \put(390,160){\mailtoFrom}%
+}
+
+\newcommand{\addressEnvAdobeii}
+{%
+ \Large
+ \noindent\put(334.5,90){\parbox[t]{250pt}{\mailtoMessageEnvelope}}%
+ \put(364,119){\mailtoName}%
+ \put(90,305){\mailtoFrom}%
+}
+\def\inputEnvExecJS{\InputIfFileExists{envexecjs.def}{}}
+\newcommand{\assembleEnvelope}
+{%
+ \par\aebenvDimensions
+ \setlength{\unitlength}{1pt}%
+ \AddToTemplate{addressEnv}
+ \inputEnvExecJS
+ \par\begin{document}\parskip0pt\strut\end{document}
+}
+\thispagestyle{empty}
+\endinput
+%%
+%% End of file `aeb_envelope.sty'.
diff --git a/texmf-dist/tex/latex/aebenvelope/envexecjs.def b/texmf-dist/tex/latex/aebenvelope/envexecjs.def new file mode 100644 index 00000000..7c0f069b --- /dev/null +++ b/texmf-dist/tex/latex/aebenvelope/envexecjs.def @@ -0,0 +1,46 @@ +%%
+%% This is file `envexecjs.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% aeb_envelope.dtx (with options: `copyright,envexecjs')
+%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% aeb_envelope.sty package, 2007-05-14 %%
+%% Copyright (C) 2006 D. P. Story %%
+%% dpstory@acrotex.net %%
+%% storyd@owc.edu %%
+%% %%
+%% This program can redistributed and/or modified under %%
+%% the terms of the LaTeX Project Public License %%
+%% Distributed from CTAN archives in directory %%
+%% macros/latex/base/lppl.txt; either version 1 of the %%
+%% License, or (at your option) any later version. %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ % the eEnvelope out to your recipients.
+\begin{execJS}{envexecjs}
+global.oEmailArgs = {
+ bUI:\mailtoUI,
+ cTo: "\mailtoEmail",
+ cCc: "\mailtoCC",
+ cBcc: "\mailtoBCC",
+ cSubject: "\mailtoSubject",
+ cMsg: "\mailtoMessageBody"
+};
+\addWatermarkFromFile({
+ bOnTop:false,
+ cDIPath:"\pathtoEnv"
+});
+function mailItNow()
+{
+ try { this.mailDoc(global.oEmailArgs) } catch(e) {}
+}
+console.println("mailItNow();");
+\executeSave();
+if ( \mailitNow\space)
+ aebTrustedFunctions(this, aebMailDoc, global.oEmailArgs);
+\end{execJS}
+\endinput
+%%
+%% End of file `envexecjs.def'.
|