Skip to main content
LinkedIn
Copied!

Table of Contents

Troubleshooting document attachment issues with PDF inline preview

Symptom

When you upload a PDF file as an attachment to a case, you see a preview of the PDF file when you click the PDF link. However, the PDF preview displays the name of the PDF tab thread in the clipboard. This problem occurs for PDF files that use inline preview in the Attachment gadget, the Document gadget, and the Pulse gadget.

The Pega support team has reproduced this problem in the Chrome browser only.

The Pega defect was resolved in the Pega Platform patch releases cited in the Solutions.

Explanation

When the title of a PDF file is not specified in the PDF file’s document properties, the current clipboard thread appears as the PDF title. If a PDF file does not have title, PDF inline preview displays the PDF document title as the clipboard thread name. This is expected behavior because the PDF inline preview uses the iframe provided by the browser for displaying PDF files.

Solutions

Choose one of the following solutions to resolve issues with PDF file display in the inline preview:

  • Update the document properties of the PDF file to include a document title.
  • Perform the local change to disable PDF inline preview in any browser.

Local change

Extend the rule @baseclass.pyBrowserAttachmentTypeTable in your application ruleset and disable the PDF inline preview:

  1. Override @baseclass.pyBrowserAttachmentTypeTable in your ruleset.
  2. Set the PDF row in pyBrowserAttachmentTypeTable to return the value false.

 


Related Content

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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