Breve introdução
PDF.JS é um visualizador de formato de documento portátil (PDF) que é criado com HTML5.
O PDF.JS é orientado pela comunidade e o apoio da Mozilla Labs.
Endereço de código aberto: https://github.com/mozilla/pdf.js
Não pode ser usado diretamente após o download, você precisa ser re -construído.
Construa um bom pacote de programas: Build.rar
Exemplo exemplar
Arquivo de citação, copie diretamente por cópia abaixo
<! Doctype html> <html> <head> <meta http-equiv = content-type content = text/html; /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); 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'). = sem src =/scripts /plugins/pdfjs/gneric/web/viewer.html?file= ' + var_filepath +' style = width: 100%;
O acima é todo o conteúdo deste artigo.