On 2002-07-26 11:43:40 +0200, Fabrice Popineau wrote:
The problem is in web2c/pdftexdir/pdftoepdf.cc :
// Called when an image has been written and it's resources in // image_tab are freed. We cannot deallocate the PdfDocument yet, as // future pages of the same document may be embedded. As an // optimization, we do delete it if it's a one-page document. void epdf_delete() {
// Akira Kakuto has suggested to make epdf_delete empty, so #if 0 PdfDocument *pdf_doc = (PdfDocument *) epdf_doc; xref = pdf_doc->xref; if (pdf_doc->doc->getCatalog()->getNumPages() == 1) delete_document(pdf_doc); #endif }
This is really weird, because that means files are never closed during the compilation, but only when the program exits because the destructors for PDFDoc objects are called. Restoring the deletion here will make things work as long as we are using 1 page pdf documents. But I think that the way included pdf documents are handled should be reworked, perhaps following Hans suggestion to add a command to explicitly close the document.
Shall (and can) we do this for 1.10a or will we postpone it till 1.11a? Adding a closing command (like \pdfximageclose) makes sense to me. Best regards Martin -- Martin Schröder, MS@ArtCom-GmbH.DE ArtCom GmbH, Grazer Straße 8, D-28359 Bremen Voice +49 421 20419-44 / Fax +49 421 20419-10
participants (1)
-
Martin Schroeder