🎨 Remove the footer Export by SiYuan when exporting image and PDF Fix https://github.com/siyuan-note/siyuan/issues/7838

This commit is contained in:
Liang Ding 2023-03-31 10:51:18 +08:00
parent 1f7fc4cc8f
commit 8a2a724341
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
10 changed files with 1 additions and 29 deletions

View file

@ -275,7 +275,7 @@ export const initWindow = () => {
};
setStorageVal(Constants.LOCAL_EXPORTPDF, window.siyuan.storage[Constants.LOCAL_EXPORTPDF]);
try {
if (window.siyuan.config.export.addFooter) {
if (false) { // TODO 已经移除了之前的“由思源笔记导出”页脚https://github.com/siyuan-note/siyuan/issues/7838后面如果需要的话换成自定义页脚
ipcData.pdfOptions.displayHeaderFooter = true;
ipcData.pdfOptions.headerTemplate = "<span></span>";
ipcData.pdfOptions.footerTemplate = `<div style="width:100%;margin-right:${ipcData.pdfOptions.margins.right}in;display: flex;line-height:12px;">