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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to preview PDF file in Mashup

AK_10385731
4-Participant

How to preview PDF file in Mashup

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!

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

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!

Announcements


Top Tags