Remove static temporary file path
This commit is contained in:
1 parent
8c58cfa1e4
commit
3b53fa599a
1 file changed
+2
-2
@@ -50,8 +50,8 @@ namespace WGneu.Documents {
|
||||
}
|
||||
|
||||
public async Task Generate() {
|
||||
var pdf = new Utils.TemporaryFile(@"C:\Users\Lorenz\Desktop", ".pdf");
|
||||
using (var tmpHtml = new Utils.TemporaryFile(@"C:\Users\Lorenz\Desktop", ".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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user