Skip to content

Build your personal knowledge base with Trilium Notes

Add option to export

Elian Doran9a3a6f90ea62
diff --git a/src/public/app/widgets/dialogs/export.ts b/src/public/app/widgets/dialogs/export.ts
index b8b51d80fb..8f1fe53068 100644
--- a/src/public/app/widgets/dialogs/export.ts
+++ b/src/public/app/widgets/dialogs/export.ts
@@ -106,6 +106,13 @@ const TPL = `
${t("export.format_markdown")}
</label>
</div>
+
+ <div class="form-check">
+ <label class="form-check-label tn-radio">
+ <input class="form-check-input" type="radio" name="export-single-format" value="pdf">
+ ${t("export.format_pdf")}
+ </label>
+ </div>
</div>
</div>
<div class="modal-footer">
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index c0d7d0eb1e..e29c258f09 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -109,7 +109,8 @@
"choose_export_type": "Choose export type first please",
"export_status": "Export status",
"export_in_progress": "Export in progress: {{progressCount}}",
- "export_finished_successfully": "Export finished successfully."
+ "export_finished_successfully": "Export finished successfully.",
+ "format_pdf": "PDF - for printing or sharing purposes."
},
"help": {
"fullDocumentation": "Help (full documentation is available <a class=\"external\" href=\"https://triliumnext.github.io/Docs/\">online</a>)",
diff --git a/src/services/export/pdf.ts b/src/services/export/pdf.ts
new file mode 100644
index 0000000000..e69de29bb2