How to interact with embedded PDFs in iframes via JavaScript?

How to interact with embedded PDFs in iframes via JavaScript?

  • Is it possible?
  • Is this possible in all major browsers?

if yes, how can I ...

  • ... do you know that the document has finished loading?
  • ... start a print dialog?
  • ... adjust scaling?
  • ... customize toolbars?
+3
source share
1 answer

Perhaps, but you will need to wrap the PDF viewer in the COM component (if not already) and include it in the form with the HTML Object tag. From there, you can manipulate the com shell (and indirectly the pdf viewer) using javascript to perform the actions.

viewer ( ), , ( viewer).

, , ... http://www.activexpowupload.com/quickstart/util/srcview.aspx?path=/Examples/ActiveXPowUpload/SourceExplorer/SimpleUpload.src

, , , . , , , .

, PDF, , - , . , , . , .

+1

Source: https://habr.com/ru/post/1698342/


All Articles