blob: d91a2e339620eb59e2adb77f21e31dc7d4136482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
\documentclass{article}
\usepackage[designv,tight]{web}
\usepackage{eforms}
\usepackage{graphicxsp}[2018/11/20]
\usepackage{icon-appr}\previewOff
\title{Creating icon appearances for button fields\texorpdfstring{\\[1ex]}{} using EPS methods with transparency}
\author{D. P. Story}
\university{Acro\TeX.Net}
\email{dpstory@acrotex.net}
\subject{Techniques for creating button appearances with transparency}
\keywords{icon appearances of push button,JavaScript}
\version{1.0}
\norevisionLabel
\newcommand{\cs}[1]{\texttt{\char`\\#1}}
\begin{embedding}
\embedEPS[hiresbb,name=mani,transparencyGroup,
cipresp={[ /ca .3 /SetTransparency pdfmark}]{../graphics/man1}
\embedEPS[hiresbb,name=girl]{../graphics/girl}
\embedEPS[hiresbb,name=scot]{../graphics/scot}
\end{embedding}
\begin{createImage}{\bboxOf{embedmani}}{manii}
[ {embedmani} /SP pdfmark
\end{createImage}
\begin{document}
\maketitle
\section{Introduction}
This document shows how to use transparency with the EPS method. It also shows how to use the same file
with 30\% opacity and 100\% opacity. \textsf{Adobe Distiller} is required as the PDF creator; the
\textsf{Distiller} settings must be set to \texttt{Standard\_transparency}, which ships with
\textsf{graphicxsp}. Instructions for installation of the \texttt{Standard\_transparency.joboptions}
file is presented in the documentation of the \textsf{graphicxsp} package.
\section{Check box and radio buttons fields}
The man icon has 30\% opacity in the checkbox and radio button fields below.\vcgBdry[6pt]
Checkbox:
\checkBox[\BC{}\BG{}
\V{Off}\DV{Off}\AS{Off}\H{N}\autoCenter{y}
\AP{\N{\On{Man}{\mani} \Off{\girl}}}
]{myCkBx}{22bp}{22bp}{Man}\quad(Girl is `off', Man is `on')\vcgBdry[6pt]
Radio Button Fields: \radioButton[\BC{}\BG{}
\V{Off}\DV{Off}\AS{Off}\H{N}\autoCenter{y}
\AP{\N{\On{Man}{\mani} \Off{\girl}}}
]{myRadBtn}{22bp}{22bp}{Man}\quad \radioButton[\BC{}\BG{}
\V{Off}\DV{Off}\AS{Off}\H{N}\autoCenter{y}
\AP{\N{\On{Man}{\mani} \Off{\girl}}}
]{myRadBtn}{22bp}{22bp}{Man}\quad\radioButton[\BC{}\BG{}
\V{Off}\DV{Off}\AS{Off}\H{N}\autoCenter{y}
\AP{\N{\On{Man}{\mani} \Off{\girl}}}
]{myRadBtn}{22bp}{22bp}{Man}\quad(Girl is `off', Man is `on')\hfill
\pushButton[\CA{Reset}\A{\JS{this.resetForm();}}]{reset}{}{11bp}
\section{Push button fields revisited}
This push button uses the appearance referenced by \cs{manii}, which has 100\% opacity and was
declare in the \texttt{CreateIcon} environment, after embedding the icon files. \vcgBdry[6pt]
\pushButton[%
% \A{\JS{app.alert("AcroTeX rocks!")}}
\TP{1}\BC{}\BG{}\S{S}
\I{\manii}
\RI{\girl}
\IX{\scot}
]{myButton}{50bp}{50bp}
\end{document}
|