mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
🎨 导出 PDF 预览界面不受主界面缩放影响 Fix https://github.com/siyuan-note/siyuan/issues/6262
This commit is contained in:
parent
4ceae7fd1b
commit
0eb535c012
1 changed files with 1 additions and 0 deletions
|
|
@ -383,6 +383,7 @@ const renderPDF = (id: string) => {
|
|||
});
|
||||
window.siyuan.printWin.webContents.userAgent = `SiYuan/${app.getVersion()} https://b3log.org/siyuan Electron`;
|
||||
window.siyuan.printWin.once("ready-to-show", () => {
|
||||
// 导出 PDF 预览界面不受主界面缩放影响 https://github.com/siyuan-note/siyuan/issues/6262
|
||||
window.siyuan.printWin.webContents.setZoomFactor(1);
|
||||
})
|
||||
fetchPost("/api/export/exportTempContent", {content: html}, (response) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue