Update TemporaryFile to be stored in .../Kelwin/

This commit is contained in:
2023-03-10 16:34:16 +01:00
parent 483657911d
commit fa1adf51a1
3 changed files with 8 additions and 6 deletions

View File

@ -50,8 +50,8 @@ namespace WGneu.Documents {
}
public async Task Generate() {
var pdf = new Utils.TemporaryFile(".pdf");
using (var tmpHtml = new Utils.TemporaryFile(".html")) {
var pdf = new Utils.TemporaryFile("pdf");
using (var tmpHtml = new Utils.TemporaryFile("html")) {
await File.WriteAllTextAsync(tmpHtml.FilePath, await Render());
await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath);
}