It can be done with some work.

- read the pdf with PdfReader
- add in the dictionary of the pages you want to rotate the key /Rotate 90.
- go over the /Annotations key and rotate each annotation. If you have
appearances they will have to be rotate too.
- save the pdf using PdfStamper.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 18:10
> To:   Paulo Soares
> Cc:   [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Rotate page 90 degree
> 
> 
> Dear Paulo, 
> 
> I have a pdf file1.  I am using cb1.addTemplate to rotate each page by 90
> degree clockwise 
> to get new  file2.  But, there is information loss for file2, especially
> for the annotation, web link. 
> 
> I like PdfCopy. But, I can not rotate each page.    I need a rotate
> function while I can copy all the information from file1 into file2. 
> 
> Thanks for your help 
> 
> yun wang 
>   
> 
> 
> 
> 
> 
> 
> 
> 
>       Paulo Soares <[EMAIL PROTECTED]> 
> 
> 10/14/2003 11:39 AM 
>         
>         To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] 
>         cc:         
>         Subject:        RE: [iText-questions] Rotate page 90 degree
> 
> 
> 
> There are several ways of doing it depending on what you want to do
> exactly.
> 
> Best Regards,
> Paulo Soares
> 
> > -----Original Message-----
> > From:                 [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> > Sent:                 Tuesday, October 14, 2003 17:24
> > To:                 [EMAIL PROTECTED]
> > Subject:                 [iText-questions] Rotate page 90 degree
> > 
> > 
> > Dear Sir, 
> > 
> > How can I rotate a pdf page without information loss to produce  a new
> > page? 
> > 
> > Thanks, 
> > 
> > yun 
> > 
> > 
> 
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to