[pdftex] pdfximage minor bug

Martin Schroeder martin at oneiros.de
Thu Nov 15 22:58:13 CET 2001


On 2001-11-15 17:35:41 +0100, Ricardo Sanchez Carmenes wrote:
> %%%%%%%%%% pdfxbug.tex %%%%%%%%%%%%
> \pdfximage width  5cm {fig.pdf}$$\pdfrefximage\pdflastximage$$
> \pdfximage width 10cm {fig.pdf}$$\pdfrefximage\pdflastximage$$
> \bye
> %%%%%%%% end of testfile %%%%%%%%%

I get this crash when mixing \pfximage and \includegraphics. :-{

I never had the energy to really nail it down. Thanks for the
analysis and the fix.

> Be sure that "fig.pdf" is any one-page pdf figure or document.
> The bug will no appear with non-pdf figures, nor with multipage
> pdf input files.

I seems to remember a crash with multipage files. More tomorrow.

[...]

> --- src/texk/web2c/pdftexdir/pdftoepdf.cc	Sun Aug  5 18:03:04 2001
> +++ new/texk/web2c/pdftexdir/pdftoepdf.cc	Wed Nov 14 01:46:40 2001
> @@ -751,10 +751,15 @@
>  // optimization, we do delete it if it's a one-page document.
>  void epdf_delete()
>  {
> +// This optimization is not useful, because we may need to re-import
> +// the one-page document with a different scalling, therefore, it is
> +// always unsafe to delete the document (RSC 13/11/2001).
> +/*

We also might need to reimport the document with another pdf page
box specification. 

Your patch will raise problems when including a file very often,
right?

Best regards
    Martin
-- 
                http://www.tm.oneiros.de/calendar/2002/



More information about the pdftex mailing list