cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing a PDF file stored in a network share

SOLVED
Regular Member

Viewing a PDF file stored in a network share

In a PoC I'm faced with following Use Case:

For a internal application I need to view PDF files which are stored on a network share.

It is possible to open the file in a browser window by entering something like:

file://///servername/share/Loremipsum.pdf

When using this as the URL for a Webframe widget, the widget won't display anything. Even a Link will not open a new window.

There are no entries in the application.log.

Any ideas how to get access to a locally stored PDF and present that to the user?

What will be the best architecture for this?

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Viewing a PDF file stored in a network share

Hi,

thanks for the Information, but copying all the files to the Thingworx repository would create a set of redundant data, which would be not acceptable in the PoC.

Finally I created a context in the Thingworx Tomcat that is redirected to the Network share. This is working quite well.

2 REPLIES 2

Re: Viewing a PDF file stored in a network share

Place the pdf into a ThingWorx file repository. Then, the input "URL" for the web frame widget would look like this: http://<host:port>/Thingworx/FileRepositoryDownloader?download-repository=<YourThingWorxRepository>&directRender=true&download-path=/your_pdf.pdf 

Highlighted

Re: Viewing a PDF file stored in a network share

Hi,

thanks for the Information, but copying all the files to the Thingworx repository would create a set of redundant data, which would be not acceptable in the PoC.

Finally I created a context in the Thingworx Tomcat that is redirected to the Network share. This is working quite well.