Display PDF in Pega Constellation view

I have EFORM files, and I’m attaching them to case using GenerateEform and AttachEform activities, the same attachments also needs to be displayed within view also. So, I have copied the FileName, Category and Label to AttachmentFiles (PageList - Link-Attachment) and displaying the same in view. I’m able to see the names but they are not appearing as PDF’s to download or view. (Tried with pyCaseRelatedContent also)

Version: 24.1.4

Appreciate help/guidance here. Thanks in Advance!

For viewing a PDF inline, we have a component in UI Gallery. You can try it out.

To fix your issue, use the Display PDF component available in the Pega Constellation UI Gallery, since it is built specifically to show PDF files inline. Right now, pyCaseRelatedContent and your AttachmentFiles list only display file details as text, not the actual file content, which is why you only see names. Add this Display PDF component to your view and connect it to the attachment’s file reference so it can properly load and render the PDF. This will let users both view and download the EFORM attachment directly on screen, instead of just seeing its label.

has anyone used displaypdf widget , currently i am getting error “Rule-UI-View save error: PropertyValueInvalid pyWidth .pegaToInteger() Invalid number format (was 100%)” the default width configured as 100% is throwing error even i remove the % still same issue .

I’ve tested the below configuration in 25.1.3 and it works fine as expected. Could you pleaes check D_AttachmentList retrieves the attachment and try to upload any other document manually and check the behavior?