Skip to main content
16-Pearl
September 19, 2025
Solved

WebFrame Widget only shows first page of PDF on iPad Body

  • September 19, 2025
  • 3 replies
  • 1077 views

Hi Community,

  I am using the WebFrame widget in a ThingWorx Mashup to display PDF files. On desktop browsers it works completely fine — I can scroll through and see all pages of the PDF.

 

However, on the iPad, if I open a PDF that has more than one page, only the first page is displayed. When I scroll down, no further pages are shown (it looks like the PDF is cut off).

 

Has anyone faced this issue before?

  • Is there any workaround / configuration needed to properly display multipage PDFs on iPads?

 

I have already tried different browsers on ipad. result is same.

Thanks in advance for your help!

Best answer by MA8731174

I identified a simple solution to this issue that eliminates the need to purchase an additional ThingView widget.

Instead, a Navigator function can be created directly within the Mashup. While configuring the Navigator, select the “Redirect to URL” option from the dropdown menu. After creating the Navigator, assign the download link of the PDF file to the URL property.

With this approach:

  • When the file is opened on an iPad, it opens in a new browser tab, allowing the PDF to be scrollable and function as expected.

  • When the file is opened on a PC, the file is downloaded automatically.

To further enhance this solution, I developed a small ThingWorx widget extension that detects whether the Mashup is opened in a desktop browser or on a mobile/iPad device. The extension returns a Boolean value (true/false) depending on the device type.

Based on this detection:

  • On an iPad, the PDF opens in a new tab for proper scrolling.

  • On a PC, the PDF is displayed directly within the Mashup using the WebGL widget.

I have attached the extension for reference.

 

3 replies

16-Pearl
September 19, 2025

Hi @MA8731174  look at the article below and let us know your output.

 

https://www.ptc.com/en/support/article/CS327675

19-Tanzanite
September 22, 2025
MA873117416-PearlAuthor
16-Pearl
September 22, 2025

Thanks for your response. I think then i should use ThingView widget to render pdf in mashup and may be that will work in ipad.. As you can see it can also render PDF in mashup and in PC i have tested it and it works.. 

 

MA8731174_0-1758538534770.png

 

 

 

MA873117416-PearlAuthor
16-Pearl
September 22, 2025

MA8731174_0-1758545195512.png

i have an expression which prepares a url for me for pdf and it works fine for webframe widget but for thingview widget these errors appear in console and sometime it cannot open pdf also.. and it convert also in request as u can .pdf to etb .. 

 

what can be the reason here? any idea thanks

 

MA873117416-PearlAuthorAnswer
16-Pearl
February 23, 2026

I identified a simple solution to this issue that eliminates the need to purchase an additional ThingView widget.

Instead, a Navigator function can be created directly within the Mashup. While configuring the Navigator, select the “Redirect to URL” option from the dropdown menu. After creating the Navigator, assign the download link of the PDF file to the URL property.

With this approach:

  • When the file is opened on an iPad, it opens in a new browser tab, allowing the PDF to be scrollable and function as expected.

  • When the file is opened on a PC, the file is downloaded automatically.

To further enhance this solution, I developed a small ThingWorx widget extension that detects whether the Mashup is opened in a desktop browser or on a mobile/iPad device. The extension returns a Boolean value (true/false) depending on the device type.

Based on this detection:

  • On an iPad, the PDF opens in a new tab for proper scrolling.

  • On a PC, the PDF is displayed directly within the Mashup using the WebGL widget.

I have attached the extension for reference.