PDF viewer troubleshooting help

I an running the trail version of the WebDev trying to display PDFs like the video shows. Here is what I have done so far:

I selected the Web Dev in the project browser, selected New File Resource, and selected the file that I wanted to use (this file is located on a VM server, if that matters.. same VM server that houses my Ignition instance)

image

From there, right clicked the file and "Copy mounted path", went to the pdf viewer component and pasted that path into the source, i get the "failed to load PDF file" error.

Am I missing something?

I think the source needs to be the full URL, not just some relative part of the path. The PDF viewer does not assume you are hosting the PDF on the local gateway via WebDev.

1 Like

I hate to be hard headed but can I get some sort of example to better understand?

http://localhost:8088/PasteThatPathYouCopiedHere

(update "localhost" with the actual hostname/IP of your Ignition Gateway or it will only work in a browser session run on the same machine)

Like this I presume:

http://localhost:8088/system/webdev/Extrusion_Tech_Repository/1511.13.90.01%20TUNNEL%20LOCAL%20PANEL_REV04.pdf)

Yes, should be something like that, without the stray parenthesis on the end.

You should be able to plug that URL into your browser and it will download the file.

OK so,

http://localhost:8088/system/webdev/Extrusion_Tech_Repository/1511.13.90.01%20TUNNEL%20LOCAL%20PANEL_REV04.pdf

Does in fact go to the pdf in my browser, but not in the pdf viewer component.

Hang on, I changed the localhost to what the IP was and it is working now. Thank you

1 Like