I used this code
iTextSharp.text.Document pdfdoc = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4.Rotate(), 12f, 12f, 12f, 12f);
still in portrait mode?
Plz share your answer.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
alice yangPosted Feb 6, 2017, 8:34 PM
Satyaprakash SamantarayPosted Feb 9, 2017, 12:49 PM
Mohamed AbedallahPosted Feb 9, 2017, 10:32 AM
http://stackoverflow.com/questions/10040161/itextsharp-landscape-document
Alternatively, you can take a look at LEADTOOLS Rotate functions to rotate your PDF file.
https://www.leadtools.com/help/leadtools/v19/dh/l/leadtools~leadtools.imageprocessing.rotatecommand.html
Disclaimer: I work for the company that created this library.