Closed orenkedem-techsee closed 2 years ago
in pdf-img-convert.js the import to is as follows: const pdfjs = require('pdfjs-dist/es5/build/pdf.js');
however, the es5 directory was renamed to 'legacy' in pdfjs-dist
https://github.com/mozilla/pdf.js/pull/12978
in order to fix this the suggested change is:
const pdfjs = require('pdfjs-dist/legacy/build/pdf.js');
in pdf-img-convert.js the import to is as follows: const pdfjs = require('pdfjs-dist/es5/build/pdf.js');
however, the es5 directory was renamed to 'legacy' in pdfjs-dist
https://github.com/mozilla/pdf.js/pull/12978
in order to fix this the suggested change is:
const pdfjs = require('pdfjs-dist/legacy/build/pdf.js');