Forum Discussion
NieschaFarris
Community Member
HI Lea,
This one works for me (var iframeElements = document.getElementsByTagName("iframe");
iframeElements[0].contentWindow.generatePDF();)
but I am trying to get it to point to the one below.
[Yesterday 4:11 PM] Farris, Niescha
<iframe id="iframepdf" src=https://cnp.learn.com/files/PDF/My_Course_Notes.pdf"files/example.pdf"></iframe>
KarlMuller
3 years agoCommunity Member
Hi,
You are referring to two PDF documents at the same time and that won't work.
It should be something like this:
<iframe id="iframepdf" src=https://cnp.learn.com/files/PDF/example.pdf"></iframe>