Question
How do I open a PDF in an automation?
I need to be able to open a PDF attachment in a HTML table in one of my automations. The HTML table element is ok and I have matched this so that the table section is variable in size. I have a forloop iterating through each cell with an attachment link in it, however, when I perform a click on this link, the PDF attachment pops up for a millisecond and instantly dissapears. Is there a solution to this problem?
Many thanks!
Ollie
***Updated by moderator: Marissa to update categories***
Hi Ollie,
I am going to assume that the pdf document is being ran by the Adobe Reader process. If that is the case, there is a good chance that the document is getting closed due to Pega Robotics injecting into the Acrobat Reader process.
Unfortunately, Pega Robotics does not integrate well with Acrobat Reader. In order to avoid the conflict of Pega Robotics injecting into the reader, I would suggest to try the following steps:
1.) Close Pega Studio
2.) Navigate on your windows explorer to %appdata%/openspan directory
3.) Open the runtimeconfig.xml found in the folder with notepad
4.) Search for <add key="IgnoreProcesses" value="" />
5.) Inside the value attribute add the adobe reader process name, ex: <add key="IgnoreProcesses" value="AcroRd32.exe" />
6.) Save the runtimeconfig.xml
7.) Open Pega Studio again and load the project
8.) Test to see if the document loads when running the automation.