diff --git a/changelog.md b/changelog.md index 2e0897e..787fe99 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-02-25 - 3.2.1 - fix(SmartPdf) +Fix type for extractTextFromPdfBuffer function + +- Corrected the parameter type from Buffer to Uint8Array for extractTextFromPdfBuffer function. + ## 2025-02-25 - 3.2.0 - feat(smartpdf) Improve dependency versions and optimize PDF to PNG conversion. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 363ce51..08da412 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartpdf', - version: '3.2.0', + version: '3.2.1', description: 'A library for creating PDFs dynamically from HTML or websites with additional features like merging PDFs.' } diff --git a/ts/smartpdf.classes.smartpdf.ts b/ts/smartpdf.classes.smartpdf.ts index e623427..9af8bb0 100644 --- a/ts/smartpdf.classes.smartpdf.ts +++ b/ts/smartpdf.classes.smartpdf.ts @@ -212,7 +212,7 @@ export class SmartPdf { }; } - public async extractTextFromPdfBuffer(pdfBufferArg: Buffer): Promise { + public async extractTextFromPdfBuffer(pdfBufferArg: Uint8Array): Promise { const deferred = plugins.smartpromise.defer(); const pdfParser: any = new plugins.pdf2json(); pdfParser.on('pdfParser_dataReady', (pdfData: any) => {