diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 0a6e468e3..49fbb18aa 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -612,7 +612,7 @@
"max": "Max",
"md2": "Code block ligature",
"md3": "After enabling, the code block will display the ligature",
- "md4": "Automatically indent the beginning of paragraphs to conform to traditional Chinese typesetting habits",
+ "md4": "After enabling, automatically indent the beginning of paragraphs to conform to traditional Chinese typesetting habits",
"md7": "Whether to display the network picture corner mark",
"md8": "After enabling, if the picture is a web file (non-local asset file), it will display a corner mark",
"md9": "Virtual Reference keyword inclusion list",
@@ -658,9 +658,11 @@
"export15": "Label Package Symbol",
"export16": "Please fill in the symbol on the left side of the tag and the symbol on the right side of the tag in the input box in turn",
"export17": "Add document title",
- "export18": "Insert document title as a heading 1 at the beginning",
+ "export18": "After enabling, insert the document title as a heading 1 at the beginning",
"export19": "Path to Pandoc executable",
"export20": "Exporting Word .docx files requires format conversion using Pandoc",
+ "export21": "Export PDF with footer",
+ "export22": "After enabling, add Export by SiYuan at the footer of the exported PDF",
"blockRef": "Ref Block",
"theme11": "Use theme in light mode",
"theme12": "Use theme in dark mode",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index f304217e7..5a0b9fc62 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -612,7 +612,7 @@
"max": "Maximizar",
"md2": "Ligadura de bloque de código",
"md3": "Tras la habilitación, el bloque de código mostrará la ligadura",
- "md4": "Sangria automáticamente el comienzo de los párrafos para ajustarse a los hábitos tipográficos tradicionales chinos",
+ "md4": "Después de habilitar, sangrar automáticamente el comienzo de los párrafos para ajustarse a los hábitos de composición tipográfica chinos tradicionales",
"md7": "Mostrar la marca de esquina de la imagen de red",
"md8": "Después de habilitarlo, si la imagen es un archivo de red (archivo de activos no locales), mostrará una marca de esquina",
"md9": "Lista de inclusión de palabras clave de referencia virtual",
@@ -658,9 +658,11 @@
"export15": "Símbolo del paquete de la etiqueta",
"export16": "Por favor, rellene el símbolo del lado izquierdo de la etiqueta y el símbolo del lado derecho de la etiqueta en el cuadro de entrada por turnos",
"export17": "Añadir título del documento",
- "export18": "Insertar el título del documento como título 1 al principio",
+ "export18": "Después de habilitar, inserte el título del documento como encabezado 1 al principio",
"export19": "Ruta de acceso al ejecutable de Pandoc",
"export20": "La exportación de archivos Word .docx requiere la conversión del formato mediante Pandoc",
+ "export21": "Exportar PDF con pie de página",
+ "export22": "Después de habilitar, agregue Exportar por SiYuan al pie de página del PDF exportado",
"blockRef": "Bloque de referencia",
"theme11": "Usar tema en modo claro",
"theme12": "Usar tema en modo oscuro",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index d4ab31f07..943518bdb 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -612,7 +612,7 @@
"max": "Max",
"md2": "Ligature du bloc de codes",
"md3": "Après l'activation, le bloc de code affichera la ligature",
- "md4": "indenter automatiquement le début des paragraphes pour se conformer aux habitudes de composition traditionnelles chinoises.",
+ "md4": "Après l'activation, indentez automatiquement le début des paragraphes pour se conformer aux habitudes de composition chinoises traditionnelles",
"md7": "Affichage ou non de la marque d'angle de l'image réseau",
"md8": "Après l'activation, si l'image est un fichier web (fichier d'actif non local), une marque d'angle apparaîtra.",
"md9": "Liste d'inclusion de mots-clés de référence virtuelle",
@@ -658,9 +658,11 @@
"export15": "Étiquette Symbole de l'emballage",
"export16": "Veuillez remplir successivement le symbole figurant à gauche de l'étiquette et le symbole figurant à droite de l'étiquette dans le champ de saisie.",
"export17": "Ajouter le titre du document",
- "export18": "Insérer le titre du document comme titre de premier niveau au début",
+ "export18": "Après activation, insérez le titre du document comme titre 1 au début",
"export19": "Chemin vers l'exécutable Pandoc",
"export20": "L'exportation de fichiers Word .docx nécessite une conversion de format à l'aide de Pandoc",
+ "export21": "Exporter un PDF avec pied de page",
+ "export22": "Après l'activation, ajoutez Exporter par SiYuan au pied de page du PDF exporté",
"blockRef": "Bloc Réf",
"theme11": "Utiliser le thème en mode Clair",
"theme12": "Utiliser le thème en mode sombre",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index e03403d6a..b0032ee98 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -612,7 +612,7 @@
"max": "最大化",
"md2": "代碼塊連字",
"md3": "啟用後代碼塊將顯示連字",
- "md4": "自動進行段首縮進,以符合傳統中文排版習慣",
+ "md4": "啟用後自動進行段首縮進,以符合傳統中文排版習慣",
"md7": "是否顯示網路圖片角標",
"md8": "啟用後如果圖片是網路檔(非本地資源檔)則會顯示角標",
"md9": "虛擬引用關鍵字包含列表",
@@ -658,9 +658,11 @@
"export15": "標籤包裹符號",
"export16": "請依次在輸入框中填寫標籤左側符號和標籤右側符號",
"export17": "新增文檔標題",
- "export18": "將文檔標題以一級標題的形式插入到開頭",
+ "export18": "啟用後將文檔標題以一級標題的形式插入到開頭",
"export19": "Pandoc 可執行文件路徑",
"export20": "導出 Word .docx 文件需要使用 Pandoc 進行格式轉換",
+ "export21": "導出 PDF 添加頁腳",
+ "export22": "開啟後在導出的 PDF 頁腳處添加 由思源筆記導出",
"blockRef": "引用塊",
"theme11": "淺色模式下使用主題",
"theme12": "深色模式下使用主題",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index b340411be..b9ae65a17 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -14,8 +14,8 @@
"leftRightLayout": "左右布局",
"topBottomLayout": "上下布局",
"keyword": "关键字",
- "searchMethod":"搜索方式",
- "regex":"正则表达式",
+ "searchMethod": "搜索方式",
+ "regex": "正则表达式",
"keywordsLimit": "关键字数量限制",
"exportAsImage": "导出为图片",
"exportBySiYuan": "由思源笔记导出",
@@ -612,7 +612,7 @@
"max": "最大化",
"md2": "代码块连字",
"md3": "启用后代码块将显示连字",
- "md4": "自动进行段首缩进,以符合传统中文排版习惯",
+ "md4": "启用后自动进行段首缩进,以符合传统中文排版习惯",
"md7": "是否显示网络图片角标",
"md8": "启用后如果图片是网络文件(非本地资源文件)则会显示角标",
"md9": "虚拟引用关键字包含列表",
@@ -658,9 +658,11 @@
"export15": "标签包裹符号",
"export16": "请依次在输入框中填写标签左侧符号和标签右侧符号",
"export17": "添加文档标题",
- "export18": "将文档标题以一级标题的形式插入到开头",
+ "export18": "启用后将文档标题以一级标题的形式插入到开头",
"export19": "Pandoc 可执行文件路径",
"export20": "导出 Word .docx 文件需要使用 Pandoc 进行格式转换",
+ "export21": "导出 PDF 添加页脚",
+ "export22": "启用后在导出的 PDF 页脚处添加 由思源笔记导出",
"blockRef": "引用块",
"theme11": "明亮模式下使用主题",
"theme12": "暗黑模式下使用主题",
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index 87fc10dbc..73dcf9da7 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -270,6 +270,7 @@ declare interface IExport {
pandocBin: string
paragraphBeginningSpace: boolean;
addTitle: boolean;
+ addFooter: boolean;
}
declare interface IEditor {
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts
index 2798baa5b..985a679ce 100644
--- a/app/src/util/onGetConfig.ts
+++ b/app/src/util/onGetConfig.ts
@@ -378,9 +378,10 @@ const initWindow = () => {
mergeSubdocs: ipcData.mergeSubdocs,
})));
try {
- ipcData.pdfOptions.displayHeaderFooter = true;
- ipcData.pdfOptions.headerTemplate = "";
- ipcData.pdfOptions.footerTemplate = `