From 4f84c45d989db860af5d05b416bf81faec1c90d4 Mon Sep 17 00:00:00 2001 From: Elias Date: Sat, 28 Dec 2024 09:59:13 +0100 Subject: [PATCH] [feat:] PDF Tags for barrier free pdf files --- MainWindow.axaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 63a9495..8fef3e2 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -541,6 +541,12 @@ namespace PLG_Exam using var document = new PdfDocument(); + document.Info.Title = _currentExam.Title; + document.Info.Author = _currentExam.Vorname + " " + _currentExam.Name; + document.Info.Subject = "PLG Exam Submission"; + document.Info.Keywords = "Exam, PLG, Report, PDF"; + document.Info.Language = "de-DE"; // Deutsch (Deutschland) + var firstPage = document.AddPage(); var gfx = XGraphics.FromPdfPage(firstPage); gfx.DrawString(_currentExam.Title, fontB, XBrushes.Black, new XRect(0, 40, firstPage.Width, 50), XStringFormats.TopCenter);