Lyle Thomas wrote:
> Hi There,
>
> Is it possible to use itext to change the pdf version as a batch? I have
> many pdfs that require to be changed from 1.2 to 1.5, and I am unsure as
> to how to do this.
That's very simple:
PdfReader reader = new PdfReader("my.pdf");
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream("new.pdf"), PdfWriter.VERSION_1_5);
stamper.close();
(You may want to use a more memory economic constructor
for PdfReader.)
br,
Bruno
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/