javascript - Java script associated with the PDF document not working in a web page -


i embedding pdf in web page using java script.

var addembededpdf = function() {     var pdfcontainer = document.getelementbyid('pdfcontainer');     pdfcontainer.innerhtml = '<embed src="' + $scope.pdfpath + '" scrolling="no" frameborder="0" width="100%" height="600px"></embed>';   }; 

two things here.

  1. adding pdf through java script
  2. the pdf being added has java script associated document

the generated pdf has end java script works when document opened through acrobat/adobe reader.

when pdf in web page java script associated pdf not working.

i think

is there way change java script associated pdf works fine.

i think javascript cannot run directly pdf via web browser, must use pdf reader support javascript


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -