Skip to content

Commit

Permalink
Kommenter ut skriving av filer til skrivebordet
Browse files Browse the repository at this point in the history
  • Loading branch information
b162214 committed Oct 18, 2023
1 parent f657219 commit ac16d47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ class PdfDokumentTest {
)
}
private fun writePDF(title: String, im: Inntektsmelding) {
val file = File(System.getProperty("user.home"), "/Desktop/$title.pdf")
// val file = File.createTempFile(title, ".pdf")
// val file = File(System.getProperty("user.home"), "/Desktop/$title.pdf")
val file = File.createTempFile(title, ".pdf")
val writer = FileOutputStream(file)
writer.write(PdfDokument(im).export())
println("Lagde PDF $title med filnavn ${file.toPath()}")
Expand Down

0 comments on commit ac16d47

Please sign in to comment.