[pdftex] Hand-made graphics in pdf

Jean-Christophe Dubacq jean-christophe.dubacq at ens-lyon.org
Fri Jun 25 23:30:45 CEST 2004


Hello!

I realize there was an old thread about this, but I would like to
include hand-crafted pdf images in my TeX files.

However, when graphics.sty is used and one image included, there are two
/XObject resources for the page and one is not accessible (in my case,
the jpg file).

Here is the sample:
\documentclass{article}
\usepackage{graphics}
\newcount\objnumero
\pdfobj stream attr%
{/Type /XObject /Subtype /Form /FormType 1 /BBox [0 0 60 60]  /Matrix [1
0 0 1 0 0]/Resources << >>}%
{q 30 60 m 12.37 5.73 l 58.53 39.27 l 1.47 39.27 l 47.63 5.73 l 30 60 l
f Q }
\let\objnumero\pdflastobj
\edef\etoile{\expandafter\pdfrefobj\the\objnumero\pdfliteral {q
/OBJ\the\objnumero\space Do Q }\pdfpageresources{/XObject
<</OBJ\the\objnumero\space\the\objnumero\space 0 R>>}\relax}
\begin{document}
...\etoile...\includegraphics{image.jpg}...
\end{document}

Is there any way to ADD xobjects to the current page ?
Can it be hacked in ?



More information about the pdftex mailing list