Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

PDF attachment (generated via HTMLToPDF) doesn’t open in Chrome

SA-21527

Summary



PDF attachment (generated via HTMLToPDF and attached via AttachToWork activity) is displayed incorrectly in Chrome and FireFox. However the document displays fine in IE.


Error Messages



Not applicable.


Steps to Reproduce



1) Generate PDF using HTMLToPDF activity.
2) Attach it to a case using AttachToWork activity. Key is file name extension provided must be in uppercase, e.g. 'someFileName.PDF'
3) Then a link is configured to view this attachment. Link is configure to 'Open URL in Window' and the activity that is responsible for content uses tools.sendFile api to display this attachment.


Root Cause



It was noted that file extension was being specified/passed in uppercase, e.g.  'someFileName.PDF' to the PDFName parameter of AttachToWork activity.

Resolution



Specify file extension in lowercase, e.g.  'someFileName.pdf' to the PDFName parameter of AttachToWork activity.

 

Published April 1, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us