簡単な紹介
PDF.JSは、HTML5で構築されたポータブルドキュメント形式(PDF)ビューアーです。
PDF.JSは、Mozilla Labsによるコミュニティ主導のサポートです。
オープンソースアドレス:https://github.com/mozilla/pdf.js
ダウンロード後に使用することはできません。慣れていない場合は、非常に面倒です。
良いプログラムパッケージを構築する:build.rar
模範的な例
引用ファイル、以下のコピーで直接コピーします
<!doctype html> <html> <head> <meta http-equiv = content-type content = text/html; /style> <script src =〜/scripts/jquery-1.10.min.js> </scrip> <scrip src =〜/scripts/plagins/pdfjs/pdf.js> </scrip> <src = 〜〜〜〜〜 〜〜〜 /Scripts/pdfjs/pdf.worker.js> </script> <text/javascript> var_filepath = decodeuricomponent(@filepath); docume) .CSS(height:var_win_height + px}); = src =/scripts/pdfjs/gneric/web/viewer.html?var_filepath + 'style = width:100%;> </iframe>');
上記は、この記事のすべての内容です。