mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 22:10:21 +08:00
fix: knowledge encrypted (#9385)
This commit is contained in:
parent
8e82f54c2b
commit
ca3c9927d2
@ -91,7 +91,7 @@ export default abstract class BasePreprocessProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async readPdf(buffer: Buffer) {
|
public async readPdf(buffer: Buffer) {
|
||||||
const pdfDoc = await PDFDocument.load(buffer)
|
const pdfDoc = await PDFDocument.load(buffer, { ignoreEncryption: true })
|
||||||
return {
|
return {
|
||||||
numPages: pdfDoc.getPageCount()
|
numPages: pdfDoc.getPageCount()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user