[NTG-pdftex] pdfannot in xform

Hans Hagen pragma@wxs.nl
Fri, 02 Jul 2004 14:08:02 +0200

```Heiko Oberdiek wrote:

>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.)
>
>
testing is an option fo rexisting files, but it's not that user
friendly; my main point is that pdftex shoul dnot quit on such
situations and definietly not end up in some funny mode (as it does now)
and produce an invalid file (in batch mode).

indeed the problem is most prominent with non existing files;

>>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.
>
>
i was thinking about one of those; i dislike the 1 inch, zero dimensions are not always accepted by acrobat (one of those persistent bugs); 1pt is ok for me (i liked the pi -)

Hans

-----------------------------------------------------------------