[EMAIL PROTECTED] wrote:
> Hi 
> 
> I am using itext to add header information to a pdf file .

OK, so you are stamping headers on a PDF with PdfStamper.

> Problem is when i am creating the new pdf file it is rotating by 90 degree.

Please compare the following examples:
http://www.1t3xt.info/examples/browse/?page=example&id=24
http://www.1t3xt.info/examples/browse/?page=example&id=25

> it is not happening with all pdf files . I have found in this forum to use 
> pdfcopy to stop rotaion . But still it is rotating . I found that after 
> assigning the pdf file ,

Er... where did you find this?

> Dim psize As iTextSharp.text.Rectangle = reader.GetPageSizeWithRotation(1)
> if i am checking psize.roation it is showing 90 for this perticular pdf file. 
> other pdf file it is showing 0.

Yes, that's possible. Read the following FAQ entry:
http://www.1t3xt.com/docs/faq.php?branch=faq.newbie&node=landscape

> What to do to stop rotation ?

I have no idea what you mean by that.
You'll have to clarify.

> I tried to rotate the page while adding to PdfContentByte
> 
> cb.AddTemplate(page1, 1, 0, 0, 1, 0, 0)
> 
> but if i am changing teh values of a,b,c and d to 0,1,-1,0 , PDF file is 
> creating empty.

No, the PDF file isn't empty, but you rotated the
content outside the visible area of the page.

> Can you please help me to solve this issue?

Get some sleep or rest, try again tomorrow with a fresh head.
You've tried so many different things that you're overlooking
the obvious.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to