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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.