Question

5
Replies
3921
Views
AmitK211 Member since 2014 25 posts
Cognizant Technology Solutions
Posted: 4 years ago
Last activity: 4 years 8 months ago
Closed

Forcing PDF Download

Hi,

I Generate PDF using HTML to PDF and the use public API tools.sendFile to send it to browser.

tools.sendFile(byteArray,lFileName,false,null,true);

When this PDF goes to browser and pdf viewer plugin is installed,  PDF opens by default in viewer. Is there any way, we can force download of the PDF instead of opening in viewer.

Regards,

Amit

Pega Customer Service User Interface Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn