However, in the new version of forms the result is:
It looks like the webpage at **https://uipath.studio.resources.host//file:////xxxx.com/PDFFile.pdf** might be having issues, or it may have moved permanently to a new web address.
When I try to use <embed> instead of <iframe> the result is the same, it’s adding that https://uipath.studio.resources.host/ path onto the front of it and the file is not displayed.
So after two days of trying every combination I could think of, the ONLY thing that works is if the PDF file is in the same folder as the form file. (It can also be a subfolder of the folder the form file is in)
<iframe src='filename.pdf'></iframe>
or
<iframe src="Temp\filename.pdf"></iframe>
Where Temp is a subfolder of whatever folder the .uiform file is in.
Using full path (ie C:\somefolder\somefile.pdf) does not work. UNCs do not work. It doesn’t matter whether you include file:/// or whatever it still doesn’t work. Only files local to the form will actually display. So if the file you want to display is stored somewhere else, you’ll have to have your automation copy it to the form folder (or a temp folder under the form folder) and use just the filename.