Huge PDF takes time to render while scrolling with pdfviewer.js

I have a pdf html page to view pdf files for rendering pdf. I am using the pdfjs library to render pdf. It works great for me.

When I open a small pdf file, it downloads and quickly displays the file; when I open a large pdf file, it quickly loads the pdf file, but it takes too much time to output the PDF file.

I can see a large PDF file, but when I scroll down, it hangs the entire browser.

Any suggestion?

+4
source share
2 answers

It seems that you are using an older version of PDF.js, try a newer version

+1

OP - PDF, , . , , .

, , , , PDF pdfjs. , git,, , , .

, PDF, , , , .

PDF - . , , PDF, . , PDF - pdfjs, , pdfjs , .

: PDF . - , - . "DOM", HTML. , PDF. PDF , , .

"" PDF , PDF (, , ) . , HTML DOM, .

PDF - . , , SVG.

, PDF , , , zip x/y, .

(), , , - . PDF , , . , PDF , , , . "index" page 1 , - .

PDF , , PDF, PDF, , PDF PDF. Acrobat, , (Word, Illustrator, InDesign) PDF; , ..

PDF (, HTML).

, PDF, , , PDF. , . .

. . , , , PDF, , . PDF , , PDF .

, PDF, , , html- . , , , - , , PDF , , , . , , .

, , . , .

PDF - PDF - . , PDF. - , , - . , , , , PDF . PDF, , , , PDF .

0

Source: https://habr.com/ru/post/1677224/


All Articles