mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
perf: 文件拆分
This commit is contained in:
@@ -76,7 +76,7 @@ export const readPdfContent = (file: File) =>
|
||||
const page = await doc.getPage(pageNo);
|
||||
const tokenizedText = await page.getTextContent();
|
||||
const pageText = tokenizedText.items.map((token: any) => token.str).join('');
|
||||
return pageText.replaceAll(/\s+/g, '\n');
|
||||
return pageText;
|
||||
};
|
||||
|
||||
let reader = new FileReader();
|
||||
|
Reference in New Issue
Block a user