[feat:] pdf export options (working)

This commit is contained in:
Elias Fierke
2025-04-25 16:13:00 +02:00
parent f5120426c6
commit 17015a3e64
5 changed files with 279 additions and 29 deletions

View File

@@ -175,7 +175,10 @@ namespace PLG_Exam
private async void OnSubmitClick(object sender, RoutedEventArgs e)
{
ExportToPdf();
ExportOptions exportOptions = new ExportOptions();
exportOptions.WindowStartupLocation = WindowStartupLocation.CenterScreen;
await exportOptions.ShowDialog(this);
}
@@ -720,9 +723,11 @@ namespace PLG_Exam
public void ExportToPdf(){
public void ExportToPdf(int margin, double lineSpacing, bool hasCorrectionLines, string textPosition){
_ = GetCurrentExamDataAsJson();
PFDExporter.ExportToPdf(_currentExam);
PFDExporter exp = new PFDExporter();
//exp.ExportToPdf(_currentExam, margin, lineSpacing, hasCorrectionLines, textPosition);
exp.ExportAllCombinations(_currentExam);
}
}