Hii

R u frm Sri Lanka....

harsha

On 8/1/07, Dharmendra Kumar <[EMAIL PROTECTED]> wrote:
>
>  Hi Bruno,
> I am facing a strange problem. Don't know if I am missing some steps. So
> the problem is when I import a landscape page and tries to render it in my
> own PDF it renders the content and everything but the content of the page is
> -180 degree rotated. I mean the content seems running from bottom to top
> instead of left to right. Here is the code snippet I am using.
>
> Document document = new Document(PageSize.A4);
> FileOutputStream os = new FileOutputStream("LandScape+Portrait.pdf");
> PdfWriter writer = PdfWriter.getInstance(document, os);
> document.open();
> PdfContentByte cb = writer.getDirectContent();
> PdfReader reader = new PdfReader("myFile.pdf");
> PdfImportedPage staticPages = null;
> int n = reader.getNumberOfPages();
> for (int j = 0; j < n; ) {
>         ++j;
>         document.setPageSize(reader.getPageSizeWithRotation(j));
>         staticPages = writer.getImportedPage(reader,j);
>
>         document.newPage();
>         cb.addTemplate(staticPages,0f, 0f);
> }
> document.close();
>
> Please help.
>
> *Dharmendra Kumar*
> *Extn: 8402*
> *There is no 'I' in Team.*
>
>
>
>
> The message  and any attachments thereto transmitted through this e-mail 
> belong to Ness IBS and /or representatives,containsinformation intended only 
> for the addressee or entity to which it is addressed and may contain 
> confidential and/or privileged material. Any review, retransmission, 
> dissemination or other use of, or taking of any action in reliance upon, this 
> information by persons or entities other than the intended recipient is 
> prohibited. If you have received this in error, please notify the sender 
> immediately and delete the material from your machine.
>
>
> All information including attachments sent to or from Ness IBS (NIBS) 
> employees may be monitored and/or reviewed by NIBS authorized personnel 
> without further notice or consent.
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>


-- 
Harsha
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to