Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(backend:files): lower PDF.js verbosity to reduce logging noise
johaven336fce8d6b9f
diff --git a/backend/src/applications/files/utils/doc-textify/adapters/pdf.ts b/backend/src/applications/files/utils/doc-textify/adapters/pdf.tsindex a243ec4f..8ffc4893 100644--- a/backend/src/applications/files/utils/doc-textify/adapters/pdf.ts+++ b/backend/src/applications/files/utils/doc-textify/adapters/pdf.ts@@ -4,7 +4,7 @@* See the LICENSE file for licensing details*/import path from 'node:path'-import { getDocument, GlobalWorkerOptions, PDFDocumentProxy } from 'pdfjs-dist/legacy/build/pdf.mjs'+import { getDocument, GlobalWorkerOptions, PDFDocumentProxy, VerbosityLevel } from 'pdfjs-dist/legacy/build/pdf.mjs'import { DocTextifyOptions } from '../interfaces/doc-textify.interfaces'// Enable parallel PDF parsing via Node.js worker threads@@ -25,7 +25,7 @@ export async function parsePdf(filePath: string, options: DocTextifyOptions): Prtry {// Load the document, allowing system fonts as fallback- const loadingTask = getDocument({ url: filePath, disableFontFace: true, standardFontDataUrl: standardFontsDir })+ const loadingTask = getDocument({ url: filePath, disableFontFace: true, standardFontDataUrl: standardFontsDir, verbosity: VerbosityLevel.ERRORS })doc = await loadingTask.promiseconst fragments: string[] = []let lastY: number | undefined = undefined