บทนำสั้น ๆ
PDF.JS เป็นตัวชมรูปแบบเอกสารพกพา (PDF) ที่สร้างขึ้นด้วย HTML5
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> </script> <script src = ~/scripts/plugins/pdfjs/pdf.js> </script> <script src = ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ /scripts/plugins/pdfjs/pdf.worker.js> </script> <script type = text/javascript> var_filepath = decodeuricomponent (@filepath); DOCUME) ) .css ({ความสูง: var_win_height + px}); = ไม่มี src =/scripts /plugins/pdfjs/gneric/web/viewer.html?file= ' + var_filepath +' สไตล์ = ความกว้าง: 100%;
ข้างต้นเป็นเนื้อหาทั้งหมดของบทความนี้