Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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!
Solved! Go to Solution.
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:
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
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:
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!