Anoojit Dhar (DHARA001)
Cognizant Technology Solutions

Cognizant Technology Solutions
DHARA001 Member since 2006 8 posts
Cognizant Technology Solutions
Posted: April 18, 2016
Last activity: February 22, 2017
Posted: 18 Apr 2016 4:12 EDT
Last activity: 22 Feb 2017 2:12 EST

Custom pdf viewer in pega


As per a requirement in our project, we needed to show the contents of a pdf attachment object in a html on the flow action UI. As a result we had to create a control to display the pdf document content/image in the section. This functionality works for all scenarios except a few where the user tries to view the document using IE11. It works for other browsers always, but intermittently with the IE11 browser.

Here everyone uses IE as the work browser hence it is creating a problem for some users in viewing the pdf. The confusing factor is that the issue doesn't happen always or with all documents. Can someone shade some light on this? The control snippet is provided below.

<div id="pdf" class='pdfStyle' >

  <pega:when java='<%=fileURL!=""%>'>

<object  id='pdfObject' data='<%=fileURL%>' width='100%' height='100%'  type="application/pdf">

<embed  id='pdfEmbed' type='application/pdf'  width='100%' height='100%'  src='<%=fileURL%>' mode="display" />    




User Experience Low-Code App Development
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.