[pdftex] Handwritten pdf graphics

Hartmut Henkel hartmut_henkel at gmx.de
Mon Oct 14 01:52:31 CEST 2002


Thanks a lot, Heiko! Yes, \pdfliteral works as desired; see the file
below.

By the way, a \box is void after \pdfxform execution. Might be worth a
short remark in the command description in the pdfTeX user manual.

Best Regards

Hartmut


\pdfcompresslevel=0
\nopagenumbers
\parindent=0pt
\newcount\obja \newcount\objb
\newcount\xobja \newcount\xobjb

\setbox0=\hbox{\vrule height 3bp depth 0pt width 217bp}
\pdfxform 0
\xobja=\pdflastxform

\setbox1=\hbox{%
\pdfliteral {q
[]0 d
0 J
0 j
0 w
0 0 217 3 re f
S
Q}\kern217bp\strut} % \strut is not the best here, just for test
\pdfxform 1
\xobjb=\pdflastxform

xobj0: A\pdfrefxform \xobja B \par
xobj1: A\pdfrefxform \xobjb B

\end


On Sun, 13 Oct 2002, Heiko Oberdiek wrote:

> On Sun, Oct 13, 2002 at 12:11:09PM +0200, Hartmut Henkel wrote:
>
> > The problem is, that object 2 is never used, but an object 3 with empty
> > stream instead. It looks that the line
> >
> > \setbox1=\hbox{\pdfrefobj\objb}
>
> \pdfrefobj\objb only says that object \objb is used and has
> to be inserted into the PDF output file. But the \hbox is
> empty. (Perhaps \pdfliteral is of more use for your problem.)
>
> Yours sincerely
>   Heiko <oberdiek at uni-freiburg.de>




More information about the pdftex mailing list