From e54203b7f4e3ae22c044f045ab0249d8d13cb23f Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Sat, 31 Oct 2026 09:51:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DPDF=E6=89=93=E5=BC=80=E5=90=8E=E5=8D=A1?= =?UTF-8?q?=E4=BD=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/ofdgo.js | 1 + internal/webui/webui.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index eadbecd..bccec28 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -13086,6 +13086,7 @@ function showError(err, empty = !state.doc) { function setBusy(busy, text = "", percent = 0, status = "", tab = documentTab()) { const operation = operationRequest(tab); + if (!busy && operation) tab.preparationBusy = true; busy ||= Boolean(tab.editTask || operation); if (operation?.preparing && operation.progress) ({text, percent} = operation.progress); const resumeSearch = tab.busy && !busy && tab.state.searchPaused; diff --git a/internal/webui/webui.go b/internal/webui/webui.go index 2060cf8..7c63981 100644 --- a/internal/webui/webui.go +++ b/internal/webui/webui.go @@ -1622,6 +1622,8 @@ func (e *businessEngine) checkDocument(name string) error { return nil } switch name { + case "ofdgoFontFaces", "ofdgoFontMenu", "ofdgoFontPreferenceOrder", "ofdgoFontFace", "ofdgoCheckTextFont": + return nil case "ofdgoDiscardObjects", "ofdgoExportObjects", "ofdgoCheckDocument", "ofdgoPDFContext", "ofdgoOpenPDF", "ofdgoOpen", "ofdgoLoadPDF", "ofdgoConfigure", "ofdgoDocumentInfo", "ofdgoSVGFontData", "ofdgoRenderBackends", "ofdgoOutputFormats", "ofdgoExportFormats", "ofdgoParsePageRange", "ofdgoMatchFontFiles", "ofdgoOutlineLinks", "ofdgoDocumentNavigation", "ofdgoInvoices", "ofdgoRenderPage", "ofdgoSearchPage", "ofdgoPageTextString", "ofdgoOpenLinks", "ofdgoDiscardPrint", "ofdgoDiscardSave", "ofdgoDetectFormat", "ofdgoConvertFile", "ofdgoPackFiles", "ofdgoLoadImport", "ofdgoCreateDocument", "ofdgoLayoutPrint", "ofdgoPrintSide", "ofdgoPrintPDF": return nil default: