Support Article
PDF View displays symbols instead of content
Summary
When the user clicks View PDF, the PDF view displays special characters instead of the content.This occurs for a few PDF files. However, when the PDF files are downloaded, the content displays correctly.
Error Messages
Not Applicable
Steps to Reproduce
- Log in to the Pega Platform.
- Add a PDF attachment to a case.
- Click the PDF to view.
Root Cause
A third-party product issue.
Special characters display when the PDF file extension is in upper case letters.Tomcat 7.0.88 does not have MIME type mapping for the .PDF file extention in web.xml .
Resolution
Perform either of the following local changes:
1. Add the following MIME type in web.xml of the current Tomcat version.
<mime-mapping>
<extension>PDF</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
2. Restart the server.
Or, update Tomcat 7.0.88 (the current version) to Tomcat 8.x.
Tags:
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.