2

I am using the following code (source) to display a PDF in a div on my page.

<div>
    <object data="data:application/pdf;base64,JVBERi0xLjcKCjEgMCBvYmogIC..." type="application/pdf" width="300" height="200">
        alt : <a href="test.pdf">test.pdf</a>
    </object>
</div>

PDF-view

Is there any way I can scroll the PDF from outside the <object> ? I want to use separate Javascript to scroll through pages on the PDF.

CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
rayray
  • 1,625
  • 1
  • 9
  • 15
  • I understand Chrome's PDF viewer is implemented using the Shadow DOM - and I don't believe JavaScript can cross the Shadow DOM boundary easily. – Dai Mar 03 '19 at 02:52

0 Answers0