Skip to main content
10-Marble
October 30, 2024
Solved

How to preview PDF file in Mashup

  • October 30, 2024
  • 2 replies
  • 734 views

Is there a way to preview a PDF file in a ThingWorx mashup without downloading it to the ThingWorx repository? The PDF file varies, and we need to display a specific page in the preview.

Thank you in advance!

Best answer by Constantine

Hello,

 

The easiest solution is to pass your PDF URL into Web Frame widget. I've just checked -- it works with PDFs just fine in my Firefox:

 

Constantine_0-1730308206870.png

 

If your URL is protected through authentication or CORS, then you can also create a Media entity with Dynamic Content, and configure it as a "proxy", as this article describes: https://support.ptc.com/help/thingworx/platform/r9.5/en/index.html#page/ThingWorx/Help/Composer/Visualization/MediaEntities.html

 

/ Constantine

2 replies

18-Opal
October 30, 2024

Hello,

 

The easiest solution is to pass your PDF URL into Web Frame widget. I've just checked -- it works with PDFs just fine in my Firefox:

 

Constantine_0-1730308206870.png

 

If your URL is protected through authentication or CORS, then you can also create a Media entity with Dynamic Content, and configure it as a "proxy", as this article describes: https://support.ptc.com/help/thingworx/platform/r9.5/en/index.html#page/ThingWorx/Help/Composer/Visualization/MediaEntities.html

 

/ Constantine

19-Tanzanite
November 4, 2024

Hi @AK_10385731 ,

 

Can you confirm whether the @Constantine 's solution was suitable for your use-case?

I believe the solution should work, but for the benefit of others, it would be good to validate this from your side.

 

Thank you!