TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Convert PDF in landscape mode in C#
Mukesh Kumar
Oct 16
2015
Code
8.8
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
First
Document document =
new
Document(PageSize.A4_LANDSCAPE);
document.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
Second
// it is for portrait pdf
Rectangle A4 =
new
RectangleReadOnly(595,842);
// For landscape
Document doc =
new
Document(PageSize.A4, 88f, 88f, 10f, 10f);
C#
pdf
landscape