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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
\documentclass{article}
\usepackage[uselayers,aebxmp,eforms,
web={designv,usetemplates,pro}]{aeb_pro}
\usepackage{graphicxsp}
%
% This demo files uses AeB Pro because I wanted to demonstrate
% that SP graphics can be put into separate layers.
%
% Uncomment this next line if you are using MiKTeX
%\previewMiKTeX
\DeclareDocInfo
{
title=\textsf{GraphicxSP}\texorpdfstring{\\}{:} Layers and Forms,
author=D. P. Story,
university=Acro\negthinspace\TeX.Net,
email=dpstory@acrotex.net,
subject={Form XObjects and BP, EP and SP operators, transparency},
keywords={Distiller, Form XObjects, BP, EP, and SP operators,transparency},
talksite=\url{http://www.acrotex.net},
talkdate={\today},
copyrightStatus=True,
copyrightNotice={Copyright (C) \the\year, D. P. Story},
copyrightInfoURL=http://www.acrotex.net
}
\talkdateLabel{Published:}
\newcommand{\cs}[1]{\texttt{\char`\\#1}}
\embedEPS[hiresbb]{Airplane}{graphics/000_0151}
\begin{createImage}{\bboxOf{Airplane}}{nAirplane}
[ {Airplane} /SP pdfmark
\end{createImage}
\begin{createImage}{\bboxOf{Airplane}}{dAirplane}
0 \heightOf{Airplane} rmoveto
currentpoint translate
1 -1 scale [ {Airplane} /SP pdfmark
\end{createImage}
\begin{createImage}{\bboxOf{Airplane}}{rAirplane}
\widthOf{Airplane} 0 rmoveto
currentpoint translate
-1 1 scale [ {Airplane} /SP pdfmark
\end{createImage}
\parindent0pt
\begin{insDLJS}{setapp}{Turn off highlighting}
try { app.runtimeHighlight=false } catch(e) {};
\end{insDLJS}
\begin{document}
\maketitle
This page demonstrates that graphics embedded by the \textbf{BP} and
\textbf{EP} pdfmarks are part of the content of the page and can
therefore be placed in different layers.
\begin{center}\setlength{\fboxsep}{0pt}
\fbox{\xBld{Airplane}%
\insertEPS[width=2in]{Airplane}\kern-\fboxrule
\insertEPS[width=1in]{Airplane}\kern-\fboxrule
\insertEPS[width=.5in]{Airplane}\kern-\fboxrule
\insertEPS[width=.25in]{Airplane}\kern-\fboxrule
\insertEPS[width=.125in]{Airplane}\eBld}
\end{center}
Click here: \resizebox{.5in}{!}{\checkBox[%
\autoCenter{n}
\A{\JS{%
toggleSetThisLayer("Airplane");\r
this.dirty=false;
}}
\V{Yes}\DV{Yes}\AS{Yes}\H{N}
\AP{/N << /Yes {nAirplane} /Off {dAirplane} >>
/D << /Yes {nAirplane} /Off {dAirplane} >>
/R << /Yes {dAirplane} /Off {rAirplane} >>
}
]{ckAirplane}{\widthOf{Airplane}bp}{\heightOf{Airplane}bp}{Yes}}
\xBld{Airplane}Yes, we can ``show picture'' within a layer, cool!\eBld
\medskip
\textcolor[rgb]{1.00,0.00,0.00}{Note:}
Need \verb!app.runtimeHighlight=false! for the checkboxes to work correctly.
\medskip The appearance attributes of the check box above, yes it is
a checkbox, is as follows:
\begin{small}
\begin{verbatim}
\AP{/N << /Yes {nAirplane} /Off {dAirplane} >>
/D << /Yes {nAirplane} /Off {dAirplane} >>
/R << /Yes {dAirplane} /Off {rAirplane} >>
\end{verbatim}
\end{small}
\end{document}
|