Add view=FitH to Webview

This commit is contained in:
2023-03-09 22:51:16 +01:00
parent 49f77ce8f6
commit 115cd2284d
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ namespace WGneu.Documents {
await File.WriteAllTextAsync(tmpHtml.FilePath, await Render()); await File.WriteAllTextAsync(tmpHtml.FilePath, await Render());
await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath); 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; PdfFile = pdf;
} }

View File

@ -20,7 +20,7 @@ namespace WGneu.Windows {
public DocumentViewerWindow(string title, string path) { public DocumentViewerWindow(string title, string path) {
InitializeComponent(); InitializeComponent();
Title = Title + " - " + title; 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) { public DocumentViewerWindow(string title, Utils.TemporaryFile file) : this(title, file.FilePath) {