James Beard wrote:
> I am currently using iText 2.0.2 - do I need a later version than this for
> the newer PdfCopy functionality mentioned below?

Only if you want to stamp extra info on the PDF.
Then you'd need at least 2.0.5 (but I'd prefer using 2.0.6).

> Also how do I add the crop regions using PdfReader?

I can't find an example that crops pages,
but have a look at this one that rotates pages:
http://itext.ugent.be/itext-in-action/examples/chapterX/RotatePages.java

Especially this is important:
pageDict = reader.getPageN(i);
pageDict.put(PdfName.ROTATE, new PdfNumber(rot + 90));

In this example, we get the page dictionary (pageDict)
and we add or replace the Rotate key and value.

You could easily replace or add the Cropbox key in a
similar way.

br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to