diff --git a/Elwig/Documents/Document.cs b/Elwig/Documents/Document.cs index 3a8b897..edae367 100644 --- a/Elwig/Documents/Document.cs +++ b/Elwig/Documents/Document.cs @@ -17,10 +17,10 @@ namespace Elwig.Documents { protected string? _pdfPath; protected string? PdfPath => _pdfPath ?? _pdfFile?.FilePath; public int? TotalPages { get; private set; } - public int? Pages => TotalPages / (DoubleSided ? 2 : 1); + public int? Pages => TotalPages / (DoublePaged ? 2 : 1); public bool ShowFoldMarks = App.Config.Debug; - public bool DoubleSided = false; + public bool DoublePaged = false; public string DataPath; public int CurrentNextSeason; @@ -116,7 +116,7 @@ namespace Elwig.Documents { progress?.Report(GenerationProportion * 100 * i / n); } progress?.Report(GenerationProportion * 100); - var pages = await Pdf.Convert(tmpFiles, pdf.FileName, DoubleSided, new Progress(v => progress?.Report(GenerationProportion * 100 + v * (1 - GenerationProportion)))); + var pages = await Pdf.Convert(tmpFiles, pdf.FileName, DoublePaged, new Progress(v => progress?.Report(GenerationProportion * 100 + v * (1 - GenerationProportion)))); TotalPages = pages.Pages; foreach (var tmp in tmpHtmls) { tmp.Dispose(); @@ -127,7 +127,7 @@ namespace Elwig.Documents { using (var tmpHtml = new TempFile("html")) { await File.WriteAllTextAsync(tmpHtml.FilePath, await Render(), Utils.UTF8); progress?.Report(50.0); - var pages = await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath, DoubleSided); + var pages = await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath, DoublePaged); TotalPages = pages.Pages; } _pdfFile = pdf; diff --git a/Elwig/Documents/Document.cshtml b/Elwig/Documents/Document.cshtml index bdd4d72..731188a 100644 --- a/Elwig/Documents/Document.cshtml +++ b/Elwig/Documents/Document.cshtml @@ -10,7 +10,7 @@ - @if (Model.DoubleSided) { + @if (Model.DoublePaged) {