JavaScript È°¿ëÆÁ
2022.05.02 / 10:43

PDF ÀÚµ¿ ·Îµù - pdf.js ¼Ò½º ¿¬µ¿Çϱâ (¸ð¹ÙÀÏ,pc ÀÚµ¿·Îµù)

Äڷγª
Ãßõ ¼ö 211

PDF ÀÚµ¿ ·Îµù - pdf.js ¼Ò½º ¿¬µ¿Çϱâ (¸ð¹ÙÀÏ,pc ÀÚµ¿·Îµù)

 

pc»óÀÇ ºê¶ó¿ìÀú·Î pdf ÆÄÀÏÀ» ÀÚµ¿·ÎµùÀ» ÇÒ¶§,

<iframe src="test.pdf"></iframe> Çü½ÄÀ¸·Î ÇÑ´Ù¸é,

Å©·Ò¿¡¼­´Â ÀÚµ¿ ·ÎµùÀÌ µÈ´Ù.

IEÀÇ °æ¿ì, ¾ÆÅ©·Îºª ¸®´õ°°Àº Ç÷¯±×ÀÎÇüÅ·Π¼³Ä¡°¡ µÇ¾î ÀÖ¾î¾ß ºê¶ó¿ìÀú »óÀ¸·Î ÀÚµ¿·ÎµùÀÌ µÈ´Ù.

 

±×·±µ¥, ¹®Á¦´Â ¸ð¹ÙÀÏ»óÀ¸·Î ¹Ù·Î PDF ÆÄÀÏÀ» ·ÎµùÇÏ°í ½ÍÀ»¶§ÀÌ´Ù.

 

ÀÌ·²¶§ À¯¿ëÇÏ°Ô ¾µ ¼ö ÀÖ´Â ¿ÀǼҽº°¡ pdf.js ÀÌ´Ù.

 

mozilla.github.io/pdf.js/

 

PDF.js

PDF.js A general-purpose, web standards-based platform for parsing and rendering PDFs. Download Demo GitHub Project

mozilla.github.io

mozilla.github.io/pdf.js/getting_started/#download

 

Getting Started

Getting Started An introduction to PDF.js with examples. Introduction Before downloading PDF.js please take a moment to understand the different layers of the PDF.js project. Layer About Core The core layer is where a binary PDF is parsed and interpreted

mozilla.github.io

 

À§ÀÇ ´Ù¿î·Îµå ÆäÀÌÁö¿¡¼­ pdfjs-2.5.207-dist.zip À» ´Ù¿î¹Þ¾Ò´Ù.

¾ÐÃàÀ» Ç®¸é 

¿©±â¿¡¼­ webÆú´õ¾ÈÀÇ viewer.html ÆÄÀÏ°ú ¿¬µ¿ÇÏ¸é °£´ÜÈ÷ »ç¿ëÇÒ ¼ö°¡ ÀÖ´Ù.

 

1
<iframe src="./web/viewer.html?file=2020_guidebook_1.pdf" width="100%" height="920px"></iframe>
cs