summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/docassembly/examples/mail-doc.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-22 13:50:37 +0900
committerNorbert Preining <norbert@preining.info>2021-06-22 13:50:37 +0900
commit57831804ee8e7fcaeb03975ab9b5a6daa8ba04e8 (patch)
treed684b9c76213272bb51d18c30b82de8b0c61ad02 /texmf-dist/doc/latex/docassembly/examples/mail-doc.tex
parentfb2f381158906763069d7c68395d326226443856 (diff)
docassembly (new)
Diffstat (limited to 'texmf-dist/doc/latex/docassembly/examples/mail-doc.tex')
-rw-r--r--texmf-dist/doc/latex/docassembly/examples/mail-doc.tex31
1 files changed, 31 insertions, 0 deletions
diff --git a/texmf-dist/doc/latex/docassembly/examples/mail-doc.tex b/texmf-dist/doc/latex/docassembly/examples/mail-doc.tex
new file mode 100644
index 00000000..6240c945
--- /dev/null
+++ b/texmf-dist/doc/latex/docassembly/examples/mail-doc.tex
@@ -0,0 +1,31 @@
+\documentclass{article}
+\usepackage{docassembly}
+\usepackage{lipsum}
+
+\hypersetup{pdfpagemode=UseNone}
+
+% Look in the Adobe Acrobat JavaScript manual under the doc.mailDoc to see all the possible parameters.
+\begin{docassembly}
+% Prior to sending this document, you can attach files this this PDF
+% Refer to attach-files.tex
+var retn = \attachFile({
+ cName: "AdobeDon",
+ cDIPath: "graphics/AdobeDon.pdf"
+});
+% The next line creates a meaningful description of the attachment
+if (retn) this.getDataObject("AdobeDon").description="The one and only AdobeDon";
+\executeSave();
+\mailDoc({
+ bUI: false,
+ cTo: "dpstory@hotmail.com",
+ cSubject: "I'm testing things out",
+ cMsg: "Good to hear from you again Don. I'm emailing this PDF, attached, for your review."
+});
+%\executeSave();
+\end{docassembly}
+
+\begin{document}
+
+\lipsum[1-30]
+
+\end{document} \ No newline at end of file