Maantic Inc
Senior Developer
Maantic Inc
RITESHC2 Member since 2013 2 posts
Maantic Inc
Posted: March 21, 2017
Last activity: March 22, 2017
Posted: 21 Mar 2017 10:03 EDT
Last activity: 22 Mar 2017 9:17 EDT

Issues on showing a embedded pdf file inside a html rule in a section . "Only secure content is displayed " error message is coming in browser.

We have a requirement to display a pdf file embedded inside a html rule in a section in our application . The approach I tried is :

  • First generate the pdf file from user input and save it in a temporary location.
  • Retrieve the pdf file from the html rule using <iframe> tag . The code is

String imageSource = "<iframe src ='" + fileLocation + "'" + " width='" + width + "' height='" + height + "' ></iframe></html>";


During runtime, when the application is trying to display the section containing the pdf , the browser is showing a warning message "Only secure content is displayed " . On clicking ShowAllContent button , the browser is getting reloaded with all the details deleted .

I have gone through few forums regarding this . There I found some posts which states using "pdf byte array using the OOTB activities like HTMLtoPDF or Code-Pega-Pdf View activity" .

Someone please explain me on how to use these OOTB activities to display the byte array (pdf content) in the HTML section .

User Experience
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.