I need to remove the header and footer from each page of an existing pdf
file? How can this be done? I tried to set the reduce the boundingBox of
the imported page but that doesn't work

 

int n = reader.getNumberOfPages();

PdfImportedPage page;

            for (int i = 0; i < n; ) {

                ++i;

                page = writer.getImportedPage(reader, i);

                page.setBoundingBox(bounds);

                writer.addPage(page);

            }

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to