diff --git a/package-lock.json b/package-lock.json index 1fa0d122..b86a9a5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "express": "^5.0.1", "jest": "^29.7.0", "openai": "^4.73.1", - "pdf-to-img": "^4.3.0", + "pdf-to-img": "4.1.1", "pino-http": "^10.3.0", "prisma-zod-generator": "^0.8.13", "sharp": "^0.33.5", @@ -6938,9 +6938,9 @@ } }, "node_modules/pdf-to-img": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/pdf-to-img/-/pdf-to-img-4.3.0.tgz", - "integrity": "sha512-S1H/PlqBRPds1HU+oPuynBWZbF2O+6HhgDSPwLy1zmUICQksNwUAbjQA3QhxBsi/14ACHvPaufmqSVxJNOzwGg==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/pdf-to-img/-/pdf-to-img-4.1.1.tgz", + "integrity": "sha512-hIm9KE7EYVOAtt8DxF/qbGx+TYUTa43mlbhHSlhBTy8w1Rv6ggZL09KSpTblmaXojsNf3DUsWia1mdnYdn89vA==", "license": "MIT", "dependencies": { "canvas": "2.11.2", diff --git a/src/lib/pdfTools.ts b/src/lib/pdfTools.ts index b236727e..cf4483f0 100644 --- a/src/lib/pdfTools.ts +++ b/src/lib/pdfTools.ts @@ -12,9 +12,6 @@ import { writeFile } from 'fs/promises' async function getPngsFromPdfPage(stream: Buffer) { const pages = await pdf(stream, { scale: 2, - renderParams: { - background: '#ffffff', - }, }) return pages }