[ pdftex-Feature Requests-89 ] Handle missing pages in included pdfs better
Feature Requests item #89, was opened at 2004-07-08 14:38 You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=496&aid=89&group_id=106 Category: None Group: v1.21 Status: Open Resolution: None Priority: 5 Submitted By: Martin Schröder (oneiros)
Assigned to: Martin Schröder (oneiros) Summary: Handle missing pages in included pdfs better
Initial Comment: Currently, when one tries to include page 10 of a 9 page document, pdftex quits. Proposed change: Behaviour of pdfTeX for pdf image inclusion: UNKNOWN := -1 Initialization: \pdflastximagepages := UNKNOWN Continue := Continue with empty xform object with dimension 1bp x 1bp. // 1bp because it avoids zero and possible problems and // the output is small (/BBox [0 0 1 1]) if PDFFileExists if PageNumber < 1 \pdflastximagepages = UNKNOWN Warning "Invalid page number" Continue elsif PageNumber > \pdflastximagepages \pdflastximagepages is set Warning "Page number to large (out of range) Continue else \pdflastximagepages is set image is included fi else Warning "PDF file does not exist" \pdflastximagepages = UNKNOWN Continue fi Failure/Success checking: if [page] < 1 * Page number too small elsif \pdflastximagepages = -1 * PDF file does not exist elsif [page] > \pdflastximagepages * Page number too large else * Success fi or with optimization for success: if [page] < 1 * Page number too small elsif [page] > \pdflastximagepages if \pdflastximagepages = -1 * PDF file does not exist else * Page number too large fi else * Success fi ---------------------------------------------------------------------- You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=496&aid=89&group_id=106
participants (1)
-
noreply@sarovar.org