Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Problem in Importing Landscape PDF Doc.

Bruno

2007-08-01

Replies:

A quick glance at your code, already shows a first error:
the following line takes effect on the next page:
>      document.setPageSize(reader.getPageSizeWithRotation(j));
This will be ignored when the current page is empty:
>      document.newPage();
So you can't expect the first page to be OK.

Furthermore, I don't understand why you want to use
PdfWriter and PdfImportedPage in this case.
Depending on your exact requirements, it may be
more interesting to use PdfCopy and/or PdfStamper.
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.