shebinleo / pdf2html

pdf2html is a module which helps to convert PDF file to HTML pages using Apache Tika. This module also helps to generate thumbnail image for PDF file using Apache PDFBox.
https://www.npmjs.com/package/pdf2html
Apache License 2.0
154 stars 33 forks source link

Downloading dependency too slow #15

Closed lyfer233 closed 2 years ago

lyfer233 commented 3 years ago

Downloading dependency "pdfbox-app-2.0.16.jar"and "tika-app-1.22" is too slow. In spite of I try taking these .jar file into "_nodemodules\pdf2html\vendor ", but it always automatic download. I don't know how to solve this problem~

Malahovskys commented 3 years ago

Downloading dependency "pdfbox-app-2.0.16.jar"and "tika-app-1.22" is too slow. In spite of I try taking these .jar file into "_nodemodules\pdf2html\vendor ", but it always automatic download. I don't know how to solve this problem~

Try use npm cache in this case

thuccoi commented 2 years ago

YES. Me too in this case. Pleas help me!! It stuck than more 15 minutes not done

Screen Shot 2021-11-22 at 09 26 56
shebinleo commented 2 years ago

You can manually download pdfbox-app-2.0.16.jar and tika-app-1.22.jar files and place them in the vendor directory. The post-install script will skip the dependency downloads if the file exists.

http://archive.apache.org/dist/pdfbox/2.0.16/pdfbox-app-2.0.16.jar
http://archive.apache.org/dist/tika/tika-app-1.22.jar