[texhax] 365 KB .tex file makes 5.95GB .pdf

William Adams will.adams at frycomm.com
Mon Oct 20 17:02:36 CEST 2014


I'm using pdflatex to open up ad graphic files and examine their sizes --- this seems to embed the files even though the ads are not placed.

Is that intentional? Is there some way to not do that?

Here's the code which I'm using to process the graphic:

%added to prevent ``too many open files'' error
\let\mypdfximage\pdfximage
\def\pdfximage{\immediate\mypdfximage}
\pdfximage{7221/#1.pdf}
\savebox\advert{\pdfrefximage\pdflastximage}
\settowidth{\advertwidth}{\usebox{\advert}}
\settoheight{\advertheight}{\usebox{\advert}}

Is there some way to release the graphic after examining its size?

William

-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.




More information about the texhax mailing list