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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
alice yangRank #2,329 · 607 reputationPosted Feb 6, 2017, 3:34 PM EST
Mohamed AbedallahRank #2,074 · 697 reputationPosted Feb 9, 2017, 5:32 AM EST
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.
Satyaprakash SamantarayRank #101 · 21.1K reputationPosted Feb 9, 2017, 7:49 AM EST