pdf-parser-client-side
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -1,1 +0,3 @@ | ||
export declare function extractTextFromPDF(file: File, variant: string): Promise<string | void>; | ||
type Variant = "clean" | "alphanumeric" | "alphanumericwithspace" | "alphanumericwithspaceandpunctuation" | "alphanumericwithspaceandpunctuationandnewline"; | ||
export default function extractTextFromPDF(file: File, variant: Variant): Promise<string | void>; | ||
export {}; |
@@ -10,3 +10,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractTextFromPDF = void 0; | ||
const { pdfjs } = require("react-pdf"); | ||
@@ -50,3 +49,3 @@ const pdfjsWorker = require("pdfjs-dist/build/pdf.worker.entry"); | ||
} | ||
console.error("Error extracting text from PDF:"); | ||
console.error("Error extracting text from PDF"); | ||
// Clean up the blob URL | ||
@@ -59,2 +58,2 @@ URL.revokeObjectURL(blobUrl); | ||
} | ||
exports.extractTextFromPDF = extractTextFromPDF; | ||
exports.default = extractTextFromPDF; |
{ | ||
"name": "pdf-parser-client-side", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A lightweight easy to use package to parse text from PDF files on client side without any server dependency.", | ||
@@ -40,7 +40,3 @@ "main": "dist/index.js", | ||
"react-pdf": "^7.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.14.2", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
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
9240
0
57