Add Pdf.Display, Rename ActiveMemberInput
This commit is contained in:
@ -30,5 +30,12 @@ namespace WGneu.Print {
|
||||
await page.WaitForFunctionAsync("() => window.finished");
|
||||
await page.PdfAsync(path_pdf);
|
||||
}
|
||||
|
||||
public static void Display(string path) {
|
||||
Process.Start(new ProcessStartInfo() {
|
||||
FileName = path,
|
||||
UseShellExecute = true,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,10 +12,7 @@ namespace WGneu.Print {
|
||||
|
||||
public static async void Test() {
|
||||
await Pdf.Convert(ROOT + "din-5008.html", ROOT + "test.pdf");
|
||||
Process.Start(new ProcessStartInfo() {
|
||||
FileName = ROOT + "test.pdf",
|
||||
UseShellExecute = true,
|
||||
});
|
||||
Pdf.Display(ROOT + "test.pdf");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user