$w("#html1").src
is not working properly
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
I bothered some people and the issue is that a PDF may contain code/macros which can be unsafe.
A couple of workarounds:
PDF Viewer app (Which is not dynamic)
Using wix code to dynamically add the PDF link to a button. (downloading instead of embedding)
The other option is to write a script that that accepts the path to a PDF (message passed from the page to the embedded script) and then displays the PDF.
I verified that in fact embedded PDFs in an HtmlComponent are Premium only. I'm doing some further checking.
thank you yisrael
with this reference
i tried to implement but at this point not working
$w("#html1").src ="https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620_3101506d88934f7386c6960da7746826.pdf?"
What doesn't work? You are embedding a PDF document in an HtmlComponent. There is no code.
Thank you for your reply
$w("#html1").src ="https://f0b620de-e294-48ef-9add-56119ec2d44c.usrfiles.com/ugd/f0b620_3101506d88934f7386c6960da7746826.pdf?"
if $w("#html1").src is your entire code, so sure it's not supposed to work.
If you have some more code, you should post it.