From 115cd2284d2b43ac0b15ab16e7885ef3d2d8a103 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 9 Mar 2023 22:51:16 +0100 Subject: [PATCH] Add view=FitH to Webview --- WGneu/Documents/Document.cshtml.cs | 2 +- WGneu/Windows/DocumentViewerWindow.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WGneu/Documents/Document.cshtml.cs b/WGneu/Documents/Document.cshtml.cs index d1c4306..eacb2d6 100644 --- a/WGneu/Documents/Document.cshtml.cs +++ b/WGneu/Documents/Document.cshtml.cs @@ -55,7 +55,7 @@ namespace WGneu.Documents { await File.WriteAllTextAsync(tmpHtml.FilePath, await Render()); await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath); } - Pdf.UpdateMetadata(pdf.FilePath, Title, "Wizergenossenschaft für Matzen und Umgebung reg. Gen.m.b.H."); + Pdf.UpdateMetadata(pdf.FilePath, Title, "Winzergenossenschaft für Matzen und Umgebung reg. Gen.m.b.H."); PdfFile = pdf; } diff --git a/WGneu/Windows/DocumentViewerWindow.xaml.cs b/WGneu/Windows/DocumentViewerWindow.xaml.cs index 8a7947a..8174ee7 100644 --- a/WGneu/Windows/DocumentViewerWindow.xaml.cs +++ b/WGneu/Windows/DocumentViewerWindow.xaml.cs @@ -20,7 +20,7 @@ namespace WGneu.Windows { public DocumentViewerWindow(string title, string path) { InitializeComponent(); Title = Title + " - " + title; - WebView.Source = new("file://" + path); + WebView.Source = new($"file://{path}#view=FitH"); } public DocumentViewerWindow(string title, Utils.TemporaryFile file) : this(title, file.FilePath) {