Fix pdfParse function call - use .default property
This commit is contained in:
@@ -57,7 +57,7 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
// PDF-Text extrahieren
|
||||
const pdfBuffer = await fs.readFile(file.path)
|
||||
const pdfData = await pdfParse(pdfBuffer)
|
||||
const pdfData = await pdfParse.default(pdfBuffer)
|
||||
|
||||
// Text in HTML-Format konvertieren (einfache Formatierung)
|
||||
const htmlContent = convertTextToHtml(pdfData.text)
|
||||
|
||||
Reference in New Issue
Block a user