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

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}

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

William

--