Add view=FitH to Webview
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user