Skip to content

ReferenceError: html2pdf is not defined #2

@kynoptic

Description

@kynoptic

When running this tool, I get the following error:

ReferenceError: html2pdf is not defined
    at /Users/username/Downloads/pdf-gcv-ocr-master/node_modules/jspdf/dist/jspdf.min.js:202:16291
    at /Users/username/Downloads/pdf-gcv-ocr-master/node_modules/jspdf/dist/jspdf.min.js:1:62
    at Object.<anonymous> (/Users/username/Downloads/pdf-gcv-ocr-master/node_modules/jspdf/dist/jspdf.min.js:1:66)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ocr: `node index.js ocr "/Users/username/Downloads/pdf-gcv-ocr-master/pdf-name.pdf"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] ocr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/username/.npm/_logs/2019-08-27T13_54_23_774Z-debug.log

> [email protected] hocr /Users/username/Downloads/pdf-gcv-ocr-master
> ./makehOCR.sh "/Users/username/Downloads/pdf-gcv-ocr-master/pdf-name.pdf_ocr"

Provided argument is not a directory

> [email protected] pdf /Users/username/Downloads/pdf-gcv-ocr-master
> ./makePDF.sh "/Users/username/Downloads/pdf-gcv-ocr-master/pdf-name.pdf_ocr"

Provided argument is not a directory
Name-MacBook-Pro-2:pdf-gcv-ocr-master username$ 

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions