[pdftex] Clipping graphics

Stéphane Mancini stephane.mancini at inpg.fr
Fri Sep 13 12:51:19 CEST 2002

Hi all,
I would like to know why, while clipping a pdf page to view
only a part of it, the whole page is kept in the produced pdf.
I don't know if I'm clear (maybe my english), but the point is
that I've wrote a script file to crop pdf using pdftex.
My script generates a latex file with the line :


before that, I set the page width to the size of the image to get a 
nice bounding box :

\hoffset         -1in
\voffset         -1in
\topmargin       0pt
\oddsidemargin   0pt
\headheight      0pt
\headsep         0pt \marginparsep    0pt
\marginparwidth   0pt
\topskip 0pt

${xl} etc is from my script ....

then I run pdflatex to produce the crop.
The fact is that the produced pdf includes the whole pdf code
of the complete page !!! It can result in large files if there are
pictures of something else completerky useless for me.
Is there a way not to embed the whole page and just keep what's in the 
viewport ?
Thanks for your lights

|Stéphane Mancini   Maître de Conférence ENSERG/LIS|
|Tél : 04 76 57 43 58 Fax : 04 76 57 47 90         |
|46, Av Felix Viallet 38031 Grenoble (France)      |
|Email : stephane.mancini at inpg.fr                  |
|Page web : http:www.lis.inpg/pages_perso/mancini  |

More information about the pdftex mailing list