\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}
