[RAG] PDF阅读模式改用pdfplumber(文本+表格提取,干净HTML);修复ck_mysql_config导入

This commit is contained in:
2026-04-02 16:18:59 +08:00
parent 05e33d1d05
commit 46428b7936
3 changed files with 72 additions and 26 deletions

View File

@@ -907,13 +907,6 @@ onMounted(async () => {
flex: 1; overflow: auto; position: relative; padding: 0;
.view-md {
padding: 20px;
// 覆盖 PyMuPDF get_text("html") 输出的固定宽度
:deep(div) { max-width: 100% !important; }
:deep(div[style*="width:"]) { width: auto !important; max-width: 100% !important; }
:deep(.pdf-page) { max-width: 100% !important; }
:deep(.pdf-page > div) { width: auto !important; max-width: 100% !important; }
:deep(.pdf-preview) { max-width: 100% !important; }
:deep(section) { max-width: 100% !important; }
:deep(p) { font-size: 15px; line-height: 1.8rem; margin-block-start: 0; }
:deep(.highlight) { background: #D0EAC8; }
:deep(.note-flag) { width: 23px; height: 28px; line-height: 28px; display: inline-block; text-align: center; font-weight: bold; font-size: 10px; margin-left: 8px; cursor: pointer; background: url("@/assets/images/reading/note.png"); color: #004EA0; background-size: contain !important; background-repeat: no-repeat !important; background-position: center bottom !important; }