Hi there!
There is a PDF preview element, which stops working on mobile even in desktop browser in dev mode preview for mobile. Is there any way to fix it and disable this behavior?
Or maybe some other solution for pdf?
Hi there!
There is a PDF preview element, which stops working on mobile even in desktop browser in dev mode preview for mobile. Is there any way to fix it and disable this behavior?
Or maybe some other solution for pdf?
If you’re facing a bug, the best course of action is to open a ticket. If the time is pressing you, you might as well use an external library via an embed or the npm plugin.
Thank you!
There was no info about this component in https://docs.weweb.io/, so I wanted to ask first if it is a bug or feature. I’ll create a ticket and for now, make a download option instead of preview for mobile.
use an iframe and in the path input “https://docs.google.com/gview?url="+"your document path”+“&embedded=true”
Agreed, found using an iframe much more flexible to display pdf’s.
I’ve also played around with Adobe’s free embed API that provides a bunch of functionality:
https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/
thank you guys, it can solve the problem now, but if we have a “pdf viewer”, it should work properly, imho