diff --git a/README.md b/README.md index 19bffe6..7a42ace 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,6 @@ Sometimes downloading the dependencies might be too slow or unable to download i ```bash cd node_modules/pdf2html/vendor # These URLs come from https://github.com/shebinleo/pdf2html/blob/master/postinstall.js#L6-L7 -wget https://dlcdn.apache.org/pdfbox/2.0.26/pdfbox-app-2.0.26.jar -wget https://dlcdn.apache.org/tika/2.3.0/tika-app-2.3.0.jar +wget https://archive.apache.org/dist/pdfbox/2.0.26/pdfbox-app-2.0.26.jar +wget https://archive.apache.org/dist/tika/2.4.0/tika-app-2.4.0.jar ``` diff --git a/constants.js b/constants.js index 1e5a81b..8d83319 100644 --- a/constants.js +++ b/constants.js @@ -3,7 +3,7 @@ const path = require('path') module.exports = { VENDOR_PDF_BOX_JAR: 'pdfbox-app-2.0.26.jar', - VENDOR_TIKA_JAR: 'tika-app-2.3.0.jar', + VENDOR_TIKA_JAR: 'tika-app-2.4.0.jar', DIRECTORY: { PDF: path.join(__dirname, './files/pdf/'), diff --git a/package-lock.json b/package-lock.json index 63c99a4..aef209f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pdf2html", - "version": "2.6.6", + "version": "2.6.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b94fc2e..cb8449b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdf2html", - "version": "2.6.6", + "version": "2.6.7", "description": "PDF to HTML or Text conversion using Apache Tika. Also generate PDF thumbnail using Apache PDFBox.", "main": "index.js", "scripts": { diff --git a/postinstall.js b/postinstall.js index 33e8962..4cc5ee1 100644 --- a/postinstall.js +++ b/postinstall.js @@ -3,7 +3,7 @@ const fs = require('fs') const constants = require('./constants') const dependencies = { - [constants.VENDOR_PDF_BOX_JAR]: 'https://dlcdn.apache.org/pdfbox/2.0.26/pdfbox-app-2.0.26.jar', + [constants.VENDOR_PDF_BOX_JAR]: 'https://archive.apache.org/dist/pdfbox/2.0.26/pdfbox-app-2.0.26.jar', [constants.VENDOR_TIKA_JAR]: 'https://archive.apache.org/dist/tika/2.4.0/tika-app-2.4.0.jar' }