Skip to content

Commit

Permalink
updated vendor url to use archive to not break in future
Browse files Browse the repository at this point in the history
  • Loading branch information
svtd committed May 4, 2022
1 parent 8d877ed commit 36220fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/'),
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit 36220fb

Please sign in to comment.