Oppsite of Landscape on Pdf Export

Hey,

im trying to do something like this

pageOrientation: pageOrientation === null || pageOrientation === undefined ? 'Portrait' : pageOrientation

but it seems 'Portrait' isn't the right value

what is the right value for 'Portrait' (or Not Landscape)

Thanks


3 Replies 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team August 3, 2022 01:51 PM UTC

Hi Eyal,


Greetings from Syncfusion support


From your query we could see that you like to change the page orientation. The Page orientation can be changed Landscape(Default Portrait) for the exported document using the PdfExportProperties.pageOrientation. Please refer the below documentation and API for more information.


Documentation: https://ej2.syncfusion.com/react/documentation/grid/pdf-export/pdf-export-options/#change-page-orientation


API: https://ej2.syncfusion.com/react/documentation/api/grid/pdfExportProperties/#pageorientation


Regards,

Rajapandi R



UN Unknown replied to Rajapandi Ravi August 4, 2022 06:46 AM UTC

what's the values that can be in pageOriatainton? I see that 'Landscape' for landscape but what is the value for Portrait? 



RR Rajapandi Ravi Syncfusion Team August 5, 2022 12:03 PM UTC

Hi Eyal,


Thanks for the update.


In pageOrientation to set the landscape the value is ‘Landscape' and for the portrait the value is ‘Portrait’. We have prepared a sample with Portrait pageorientation, please refer the below sample for more information.


Sample: https://stackblitz.com/edit/react-hgfrpo?file=index.js


Regards,

Rajapandi R


Marked as answer
Loader.
Up arrow icon