We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

PDF Orientation


How can I update the orientation of PDF file?


1 Reply

SL Sowmiya Loganathan Syncfusion Team September 4, 2019 01:43 PM UTC

Hi Ariel, 

Thank you for contacting Syncfusion support.  

We can create PDF document with different orientation (portrait and landscape) using PdfPageOrientation, please refer the below code snippet for more details, 

//Create a new PDF document 
PdfDocument document = new PdfDocument(); 
//Change the page orientation to landscape. 
document.PageSettings.Orientation = PdfPageOrientation.Landscape; 

Please refer the below KB link for your reference, 

Please try the above solution in your end and let us know the result. 

Sowmiya L 

Live Chat Icon For mobile
Up arrow icon