Question

5
Replies
4098
Views
Close popover
Amit Kumar (AmitK211)
Cognizant Technology Solutions

Cognizant Technology Solutions
IN
AmitK211 Member since 2014 25 posts
Cognizant Technology Solutions
Posted: January 24, 2016
Last activity: January 27, 2016
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 Experience Low-Code App Development
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.