diff options
Diffstat (limited to 'macros/latex/contrib/icon-appr/examples/pdfmark-drivers')
3 files changed, 29 insertions, 45 deletions
diff --git a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex index dbf836bd16..fe89538aa6 100644 --- a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex +++ b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps-transp.tex @@ -3,9 +3,7 @@ \usepackage[designv,tight]{web} \usepackage{eforms} \usepackage{graphicxsp}[2018/11/20] -\usepackage{icon-appr} - -%\previewOn\pmpvOn +\usepackage{icon-appr}\previewOff \title{Creating icon appearances for button fields\texorpdfstring{\\[1ex]}{} using EPS methods with transparency} \author{D. P. Story} @@ -78,4 +76,4 @@ declare in the \texttt{CreateIcon} environment, after embedding the icon files. ]{myButton}{50bp}{50bp} -\end{document}
\ No newline at end of file +\end{document} diff --git a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex index 5249486424..a8c3d017a4 100644 --- a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex +++ b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-eps.tex @@ -1,10 +1,11 @@ \documentclass{article} + \usepackage[designv,tight]{web} \usepackage{eforms} \usepackage{graphicxsp}[2018/11/20] -\usepackage{icon-appr} +\usepackage{icon-appr} %\previewOn\pmpvOn -%\previewOn\pmpvOn +\addtoWebHeight{1in} \title{Creating icon appearances for button fields\texorpdfstring{\\[1ex]}{ }using EPS methods} \author{D. P. Story} @@ -16,6 +17,7 @@ \norevisionLabel \newcommand{\cs}[1]{\texttt{\char`\\#1}} +\let\app\textsf \begin{embedding} \embedEPS[hiresbb,name=mani]{../graphics/man1} @@ -29,13 +31,14 @@ \section{Introduction} -Forxx the \textsf{\textbf{pdfmark}}-type drivers (\textsf{dvips} and -\textsf{dvipsone}), there are two ways to create an icon appearance: (1) -JavaScript methods and (2) EPS methods. The JavaScript methods are -demonstrated in \texttt{icons-appr-pb.tex}. A shortcoming of the JavaScript -method is that \textsf{Acrobat} and \textsf{Distiller}) are needed, and the -methods do not apply to check box and radio button fields. The advantage of -EPS methods is they apply to all button fields. +For the \app{dvips\,\texttt{->}\,distiller} or +\app{dvips\,\texttt{->}\,ps2pdf} workflow, there are two ways to +create an icon appearance: (1) JavaScript methods and (2) EPS +methods. The JavaScript methods are demonstrated in +\texttt{icons-appr-pb.tex}. A shortcoming, to some, of the +JavaScript method is that \app{Acrobat} is needed, and the +methods do not apply to check box and radio button fields. The +advantage of EPS methods is they apply to all button fields. \section{Push button fields} @@ -49,15 +52,20 @@ EPS methods is they apply to all button fields. \IX{\scot} ]{myButton}{100bp}{100bp} \end{minipage}\cgBdry[6bp]\raisebox{-.5\baselineskip}{\begin{minipage}[t]{\linewidth-108bp} -\textbf{Comments on PDF creation.} The file can be distilled and viewed in -\textsf{Acrobat} and saved for others to view in another PDF viewer; however, -you can also use \textsf{ps2pdf} to produce a PDF file; however, the -resulting PDF does not display correctly in \textsf{PDF-XChange Editor} (or -\textsf{Viewer}). In this case, open the file in \textsf{Adobe Reader DC} (or -\textsf{Acrobat}) and save it. It will now view correctly in -\textsf{PDF-XChange}. This file does view correctly for \textsf{SumatraPDF}; -however, the buttons have the correct appearances, but are not functional. -\end{minipage}} +\textbf{Comments on PDF creation.} The file can be distilled, +viewed in \app{Acrobat}, and saved for others to view in +another PDF viewer. You can also use \app{ps2pdf} to produce +a PDF file;\footnotemark\space however, the resulting PDF +does not display correctly in \app{PDF-XChange Editor} (or +\app{Viewer}). In this case, open the file in \app{Adobe +Reader DC} (or \app{Acrobat}) and save it. It will now view +correctly in \app{PDF-XChange}. This file does view correctly +for \app{SumatraPDF}; however, the buttons have the correct +appearances, but are not functional. +\end{minipage}}\footnotetext{Be aware, \app{ps2pdf} does not support +the creation of Document JavaScript, what saves us here is +there are no Document JavaScript.} + \section{A check box button field} @@ -82,26 +90,4 @@ however, the buttons have the correct appearances, but are not functional. \pushButton[\CA{Reset}\A{\JS{this.resetForm();}}]{reset}{}{11bp} -\section{Icons in this document} - -Use the button below to cycle through all icons in this document. - -% Note, compare this code and fields with that of icon-appr-exmpl.tex -% in the latter file, we include a caption, where here, we do not -% include a caption. -\begin{defineJS}{\cycleJS} -if (typeof indexIcon == "undefined") var indexIcon=0; -var oIconName=this.icons[indexIcon].name; -var f=this.getField("iconContainer"); -var oIcon=this.getIcon(oIconName); -f.buttonSetIcon(oIcon); -indexIcon = (indexIcon+1) \% (this.icons.length); -\end{defineJS} - -\begin{center} -\pushButton[\BG{}\autoCenter{n} - \TP{1}\I{}\S{S}]{iconContainer}{100bp}{100bp}\vcgBdry[6bp] -\pushButton[\CA{Cycle}\AAmouseup{\cycleJS}]{cycleBtn}{}{11bp} -\end{center} - \end{document} diff --git a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex index f528ea7f65..4baa8ddd28 100644 --- a/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex +++ b/macros/latex/contrib/icon-appr/examples/pdfmark-drivers/icon-appr-pb.tex @@ -1,7 +1,7 @@ \documentclass{article} \usepackage[web={designv,tight},eforms ]{aeb_pro} -\usepackage{icon-appr}\previewOff +\usepackage{icon-appr} \usepackage{fancyvrb} %\previewOn\pmpvOn |