ocr-document-classification
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -68,2 +68,3 @@ "use strict"; | ||
async function extractTextFromPDF(fileContent) { | ||
pdfjsLib.GlobalWorkerOptions.workerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@4.4.168/+esm`; | ||
const pdf = await pdfjsLib.getDocument({ data: fileContent }).promise; | ||
@@ -70,0 +71,0 @@ let text = ""; |
{ | ||
"name": "ocr-document-classification", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Document classification using tesseract.js and string-similarity-js.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15113
289