Ranginani, Archana wrote:
> I need to remove the header and footer from each page of an existing pdf
> file? How can this be done?
Do you need to remove it from the file?
(That's difficult.)
Or do you need to hide it from the screen/printer?
(That's easy.)
> 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);
>
> }
I'd start with this example:
http://1t3xt.info/examples/browse/?page=example&id=285
But instead of changing the rotation, I'd add a crop box
to the page dictionary.
--
This answer is provided by 1T3XT BVBA
-------------------------------------------------------------------------
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