How to keep the pdf export dialog vertically or horizontally?

Answered
tecso asked on August 20, 2024

Good afternoon,
My name is Manuele Alboni, I am a developer working on a project that is being modified.

The license number is: ***********************************

I am contacting you to ask for support regarding an option on the flexmonster toolbar to export to pdf. In the “export” tab I added the functionality to export to pdf with the logo but as a result I lost the standard dialog asking me if I wanted to export vertically or horizontally. Is it possible to keep this export functionality with the logo without losing the option to export vertically or horizontally?

I am attaching a few portions of code to show you how I made the change to export with the logo so that you can provide me with an ad hoc example on the code.

Looking forward to your feedback, I wish you a good day,

Manuel Alboni

 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 21, 2024

Hello Manuel,

Thank you for reaching out to us.

We recommend creating a custom pop-up window where users can select the option to export vertically or horizontally. Flexmonster provides pageOrientation property for the exportTo method. You can pass the necessary value("portrait" or "landscape") to the pageOrientation property and call the exportTo method with the defined logo.

Please let us know if it works for you. Looking forward to hearing from you.

Kind regards,
Nadia

Please login or Register to Submit Answer