Wahtever you use for further processing is badly broken, the rotation is not a
hint it's to be respected. As we don't live in a perfect world here's what you
can do:
- create a new document
- set the page size for whatever size you require
- import the page from the existing pdf as an Image.
- rotate the image 90 degrees
- apply the image in your new document
- call newPage()
- repeat for all the pages
Paulo
-----Original Message-----
From: Markus B. [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 12:53 PM
To: [email protected]
Subject: Re: [iText-questions] rotationg page contents
Thanks for your quick answer!
Unfortunately that's not exactly what I meant. I'm sorry if I didn't wrote
it clearly.
1. I have pages with height > width that are shown in portrait having
rotation 0
2. I have pages with width > height that are shown in landscape having
rotation 0
I need to rotate the pages that are shown in landscape by 90 degrees to get
them shown in portrait BUT (and here comes my problem) I need these pages
shown in portrait having rotation 0.
Source: page width > height shown in landscape having rotation 0
Dest: page height > width shown in portrait having rotation 0
reader.getPageN(i).put(PdfName.ROTATE, new PdfNumber(90))
This gets me a page shown in portrait having rotation 90. My Problem is that
the rotation is ignored in further processing so the page is still used in
landscape format.
The way I understand it the rotation is a kind of hint for the renderer. The
content isn't rotatet but when the page is shown the renderer rotates it by
the given value.
What I need to do is rotating the content in the pdf and not giving a hint
for the renderer.
I hope there is a way to manage this.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/rotationg-page-contents-tp2549931p2550144.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/