PDF Orientation

Hi

How can I update the orientation of PDF file?

Thanks

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. 

Regards, 
Sowmiya L 


Loader.
Up arrow icon