Title: RE: [iText-questions] Rotate page 90 degree
At 12:10 PM -0500 10/14/03, [EMAIL PROTECTED] wrote:
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.

        Correct.  Using PdfReader & PdfStamper will toss annots, etc.


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.

        Easy enough to add yourself by just using the low level iText APIs to add the appropriate /Rotate key to the /Page dictionary.

        HOWEVER, you should probably be smart about this and actually read any current value, do the math to adjust from that point and then put the new value instead of just blasting a specific value.


Leonard
-- 
---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-629-3700 (voice)
                                             215-629-0789 (fax)



Reply via email to