Question

10
Replies
10267
Views
DHARA001 Member since 2006 8 posts
Cognizant Technology Solutions
Posted: April 18, 2016
Last activity: February 22, 2017
Closed

Custom pdf viewer in pega

Hi

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" />    

   </object>

</pega:when>

</div>

User Interface Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn