feat(pdf): add configurable PDF export and improve print rendering

This commit is contained in:
Mateusz Gruszczyński
2026-09-12 00:01:25 +02:00
parent f9cf17554a
commit c5e01916c8
12 changed files with 584 additions and 14 deletions
+26
View File
@@ -366,6 +366,32 @@
"editor.enablePage": "Enable Page",
"editor.enablePageTitle": "Enable or disable the published page",
"editor.extendedMarkdown": "Extended Markdown",
"editor.pdfPopupBlocked": "The PDF window was blocked by the browser.",
"editor.pdfExportFailed": "Could not prepare the PDF.",
"editor.a4Portrait": "A4 — Portrait",
"editor.a4Landscape": "A4 — Landscape",
"editor.a3Portrait": "A3 — Portrait",
"editor.a3Landscape": "A3 — Landscape",
"editor.a5Portrait": "A5 — Portrait",
"editor.letterPortrait": "Letter — Portrait",
"editor.letterLandscape": "Letter — Landscape",
"editor.exportPdf": "Export PDF",
"editor.generatePdf": "Generate PDF",
"editor.includeDocumentTitle": "Include document title",
"editor.margins": "Margins",
"editor.narrowMargin": "Narrow (8 mm)",
"editor.normalMargin": "Normal (12 mm)",
"editor.pageBreak": "Page break (PDF)",
"editor.pageBreakShortcut": "Page break (PDF) · Ctrl/Cmd+Enter",
"editor.pageFormat": "Page format",
"editor.pdfPageBreakHelp": "Use --- or Ctrl/Cmd+Enter to start a new PDF page.",
"editor.preservePdfColors": "Preserve colors and backgrounds",
"editor.pdfColorHelp": "Keeps syntax highlighting, alerts, quotes, highlights, table headers, and other colors in the PDF.",
"editor.pdfPrintHelp": "The browser print dialog will open. Choose Save as PDF.",
"editor.pdfGeneratedFooter": "Generated by RustPad",
"editor.presentation16x9": "16:9 — Presentation",
"editor.presentation4x3": "4:3 — Presentation",
"editor.wideMargin": "Wide (20 mm)",
"editor.failedMermaid": "Failed to load Mermaid.",
"editor.fileCount": "{count} files",
"editor.font": "Font",
+26
View File
@@ -366,6 +366,32 @@
"editor.enablePage": "Włącz stronę",
"editor.enablePageTitle": "Włącz lub wyłącz opublikowaną stronę",
"editor.extendedMarkdown": "Rozszerzony Markdown",
"editor.pdfPopupBlocked": "Przeglądarka zablokowała okno eksportu PDF.",
"editor.pdfExportFailed": "Nie udało się przygotować PDF.",
"editor.a4Portrait": "A4 — pionowo",
"editor.a4Landscape": "A4 — poziomo",
"editor.a3Portrait": "A3 — pionowo",
"editor.a3Landscape": "A3 — poziomo",
"editor.a5Portrait": "A5 — pionowo",
"editor.letterPortrait": "Letter — pionowo",
"editor.letterLandscape": "Letter — poziomo",
"editor.exportPdf": "Eksport PDF",
"editor.generatePdf": "Generuj PDF",
"editor.includeDocumentTitle": "Dołącz tytuł dokumentu",
"editor.margins": "Marginesy",
"editor.narrowMargin": "Wąskie (8 mm)",
"editor.normalMargin": "Normalne (12 mm)",
"editor.pageBreak": "Podział strony (PDF)",
"editor.pageBreakShortcut": "Podział strony (PDF) · Ctrl/Cmd+Enter",
"editor.pageFormat": "Format strony",
"editor.pdfPageBreakHelp": "Użyj --- lub Ctrl/Cmd+Enter, aby rozpocząć nową stronę PDF.",
"editor.preservePdfColors": "Zachowaj kolory i tła",
"editor.pdfColorHelp": "Zachowuje w PDF kolorowanie składni, alerty, cytaty, wyróżnienia, nagłówki tabel i inne kolory.",
"editor.pdfPrintHelp": "Otworzy się okno drukowania przeglądarki. Wybierz Zapisz jako PDF.",
"editor.pdfGeneratedFooter": "Wygenerowano przez RustPad",
"editor.presentation16x9": "16:9 — prezentacja",
"editor.presentation4x3": "4:3 — prezentacja",
"editor.wideMargin": "Szerokie (20 mm)",
"editor.failedMermaid": "Nie udało się załadować Mermaid.",
"editor.fileCount": "{count} plików",
"editor.font": "Czcionka",