mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
99331ce331
commit
f08ff330c7
4 changed files with 28 additions and 8 deletions
|
|
@ -378,6 +378,11 @@ const initWindow = () => {
|
|||
mergeSubdocs: ipcData.mergeSubdocs,
|
||||
})));
|
||||
try {
|
||||
ipcData.pdfOptions.displayHeaderFooter = true;
|
||||
ipcData.pdfOptions.headerTemplate = "<span></span>";
|
||||
ipcData.pdfOptions.footerTemplate = `<div style="font-size: 12px;padding-left:${ipcData.left}">
|
||||
<a style="color:#5f6368;" href="https://b3log.org/siyuan">${window.siyuan.languages.exportBySiYuan}</a>
|
||||
</div>`
|
||||
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
|
||||
fetchPost("/api/export/exportHTML", {
|
||||
id: ipcData.rootId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue