I want to display a pdf, and in searching Glide’s official help docs and the community, I started to add the urlbox integration, but it looks like this would require me to have a paid subscription to another platform. Is there another way to display a pdf where I don’t have to pay for something else?
Have you tried using the web-embed component?
Where are you storing your PDF?
I find the web embed component is hit and miss to display a PDF inside the application.
Alternatives:
-
Turn the PDF into individual images and turn this into a carousel. I find this cumbersome and not realistic in my use case where I’m uploading many PDFs that represent Powerpoint presentations.
-
Upload one image (such as the first page of the PDF) and bind an
Open link
action. Pointing to the PDF works well, the user experience is nice. But the PDF is not actually embedded inside the Glide app. -
I tried with the custom AI component, unsuccessfully.
I’m curious what others are doing to display PDFs inside their apps.
I use the Web Embed.
Why do you think the web embed component is hit & miss? On which devices is it not working?
I can load an MP4 or image without any issue with the web embed component, however with a PDF in the specific instance I’m testing, I noticed the file does not load on mobile yet loads fine on my laptop.
Mobile
The file name is displayed but the file name doesn’t not load. The user needs to click on “Open” and the file name is URL encoded, which makes it appear like an error message.
Desktop / Laptop
You’ve never had this? It could be because of the size of the PDF file, but I cannot change the PDF file.
I don’t think I have seen this behavior before. The worst I have had on iOS with web embed is them only showing the first page and not scrollable, but I have fixes in place for that with this template.
https://drive.google.com/viewerng/viewer?embedded=true&url=[insert your PDF URL here]
I’ll try that, thanks a ton.
I’m curious, how did you come up with the code? Forums, or did you ask an AI by describing your issue?
I think I got it from Stackoverflow. It was a very long time ago.