Change print options (portrait or landscape)

Hello,

is it possible to set print orientation (print portrait or landscape) when i call the print function?

See example project:

function callPrint()
{
    var pdfviewerObj = $("#PdfViewer1").data("ejPdfViewer");
    // set print options to e.g. landscape
    ????

    // Print the document
    pdfviewerObj.print();

}

At the moment the last setting the user chose is taken per default.


Regards

Matthias




Attachment: PrintOrientation_portrait_landscape_3ef75d7e.7z

1 Reply

DM Dhivyabharathi Mohan Syncfusion Team February 25, 2022 03:37 AM UTC

Hi Matthias, 
 
Syncfusion PDF Viewer does not have support to set the print orientation while printing the PDF document. We will print the PDF document with the default A4 size. If the provided PDF document width is greater than the height, then we will rotate the page and we will print the same. This is the default behavior of Syncfusion PDF Viewer for printing the PDF documents. 
 
Please revert to us, if you need further assistance. 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon