An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: PDF files longer than 1024 pages are not included in asset file content searching https://github.com/siyuan-note/siyuan/issues/9053
Danielb578506ea5e0
diff --git a/kernel/model/asset_content.go b/kernel/model/asset_content.goindex ff5c150ac4..426d94d530 100644--- a/kernel/model/asset_content.go+++ b/kernel/model/asset_content.go@@ -748,7 +748,7 @@ func (parser *PdfAssetParser) getTextPageWorker(id int, instance pdfium.Pdfium,// Parse will parse a PDF document using PDFium webassembly module using a worker poolfunc (parser *PdfAssetParser) Parse(absPath string) (ret *AssetParseResult) {- st := time.Now()+ now := time.Now()if !strings.HasSuffix(strings.ToLower(absPath), ".pdf") {return}@@ -850,7 +850,10 @@ func (parser *PdfAssetParser) Parse(absPath string) (ret *AssetParseResult) {}}close(results)- logging.LogInfof("convert [%s] PDF with %d pages using %d workers took %s.\n", tmp, pc.PageCount, cores, time.Since(st))++ if 256 < pc.PageCount {+ logging.LogInfof("convert [%s] PDF with [%d[ pages using [%d] workers took [%s]", absPath, pc.PageCount, cores, time.Since(now))+ }// loop through ordered PDF text pages and join content for asset parse DB resultcontent := ""