[pdftex] Multiple references to image fails.

John Culleton john at wexfordpress.com
Fri Jun 13 22:18:49 CEST 2008


On Wednesday 11 June 2008 05:22:02 am George N. White III wrote:
> On Tue, Jun 10, 2008 at 9:51 AM, John Culleton 
<john at wexfordpress.com> wrote:
> > Now my real objective was to not only reuse \firstimage but use
> > it at different sizes.  AFAIK that cannot be done without
> > reloading the image.  I am trying to cut down on the number of
> > image instances in the pdf file so as to restrict its size. The
> > e-book site restricts total e-book size to 2mb so every byte
> > counts.  For this reason I am using TeX instead of Scribus, and
> > plain pdftex instead of Context or pdfLaTeX.
>
> It isn't obvious to me that plain (pdf)(e)tex should produce
> smaller files. I'm more used to worrying about the total number of
> pages that will get printed than the size of files.  Are there
> realistic examples where (pdf)LaTeX or ConTeXt produce inflated pdf
> files?  Does using miniltx and graphix, etc. increase the size of
> .pdf files created with plain?

As it happens, Context will accept the same simple file as pdftex 
without complaint. Unlike pdflatex it won't choke if its own macro 
call etc. are not employed. So here is a file:
------------------------------------
Hello, world.
\bye
-----------------------------------
pdftex hello.tex
 yields 5498 bytes.
texexec hello.tex 
yields 21178 bytes, and takes 21 seconds to run.  It appears that this 
is just 15,680 of fixed overhead.  If I add some text the overhead 
grows to 16,197, not a big increase.

but it is consistently bigger. 



-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm


More information about the pdftex mailing list