Brief introduction
Pdf.js is a portable document format (PDF) viewer that is built with html5.
PDF.JS is Community-Driven and Support by Mozilla Labs. Our Goal is to Create a General-Purpose, web stanDards-Based Platform for Parsing and rendering pdfs.
Open source address: https://github.com/mozilla/pdf.js
Can't be used directly after downloading, you need to be re -constructed. If you are not familiar, it will be very troublesome
Build a good program package: Build.rar
Exemplary example
Quote file, copy directly by copy below
<!DOCTYPE html><html><head> <meta http-equiv=Content-Type content=text/html; charset=utf-8> <title>课程详情</title> <style type=text/css> < /style> <script src = ~/scripts/jquery-1.10.min.js> </script> <script src = ~/scripts/plugins/pdfjs/pdf.js> </script> <script src = ~ ~ ~ ~ ~ ~ /Scripts/plugins/pdfjs/pdf.Worker.js> </script> <script type = Text/Javascript> Var var_filepath = decodeuricomponent (@filepath); win_height = $ (window) .height () ; $ (docume). READY (function () {resetplayersize ();}); $ (window) .Resize (function () {resetplayersize ()); () {var_win_height = $ (window) .height (); $ (. tmplayer) .css ({height: var_win_height + px}); tmplayer style = Height: 557px; width: 100%; height: 100%> </div> <script type = text/javascript> $ ('. TMPlayer'). = no src =/scripts /plugins/pdfjs/gneric/web/viewer.html?file= ' + var_filepath +' style = width: 100%; height: 100%;> </iframe> '); html>The above is all the contents of this article. I hope it will be helpful to everyone's learning. I also hope that everyone will support VEVB Wulin.com.