I'd like to write some Perl code to insert 'Bates numbers' into legal documents that are PDF'd. (If you don't know what Bates numbers are, see the Wikipedia entry. See below for quick summary)
I'll probably end up using either PDF::API2 or PDF::Reuse. PDF::Reuse has a feature to insert a stamp or water mark, but that is not quite what I want. What I would like to do is shrink the original page by a user-defined amount (zoom=.95 e.g.) and then insert the user-specified Bates Number. The Bates number is typically composed of some ASCII text concatenated with an incremented sequence number per page. (Just assume an arbitrary string for now). My trouble is, aside from poor documentation of PDF::API2, is I don't see a magnify (or zoom) feature for a page. PDF::Reuse does magnify (or shrink, as well as rotate) the watermark or stamp before appying it to a page. I suppose I will end up reverse engineering that for the magnify of PDF, which seems missing as a standalone function...So what I would do is: 1) shrink the PDF page, 2) insert a string at the bottom of the page that does not overlap the existing PDF. 3) Write the page out.