fix(打印能力): 修复所选页面打印

This commit is contained in:
xiaoqidun committed 2026-10-24 22:58:25 +08:00
1 parent 7b4eb5ff60
commit 297e093457
1 file changed
+1 -1
+1 -1
View File
@@ -671,7 +671,7 @@ function openPrintPanel() {
if (!tab.state.doc || !tab.state.ready || document.body.hasAttribute("data-busy") || formDialogOpen()) return; if (!tab.state.doc || !tab.state.ready || document.body.hasAttribute("data-busy") || formDialogOpen()) return;
printDialog ||= createPrintDialog(); printDialog ||= createPrintDialog();
printDialog.open({tab, call:(name, ...args) => callTabWASM(tab, name, ...args), page:tab.state.pageIndex, printDialog.open({tab, call:(name, ...args) => callTabWASM(tab, name, ...args), page:tab.state.pageIndex,
selection:[...tab.state.pageSelection].sort((a,b) => a-b), annotations:tab.state.renderAnnotations, selection:tab.state.pageSelection.size ? selectedPageIndexes() : [], annotations:tab.state.renderAnnotations,
name:tab.state.fileName || tab.state.doc.title || "OFDGo"}); name:tab.state.fileName || tab.state.doc.title || "OFDGo"});
} }