[NTG-pdftex] pdfannot in xform

Heiko Oberdiek oberdiek@uni-freiburg.de
Fri, 2 Jul 2004 13:43:48 +0200

On Fri, Jul 02, 2004 at 09:40:57AM +0200, Hans Hagen wrote:

> Currently, when one tries to include page 10 of a 9 page document, pdftex 
> quits. 

Before trying, the first page can be included in a box, then
\pdflastximagespages is available for testing whether the
intended inclusion page is valid. (Documents with zero pages
cannot handled this way.)

> Is it possible to continue and return an empty xform with say 
> 3.141592pt by 3.141592pt dimensions?

Instead of checking two dimensions, it should be easier to check
whether the page is not greater than \pdflastximagepages.
Then no funny value is needed for the dimensions, 0pt, 1pt, 1bp,
1in can be used.

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>