You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val pdf = Pdf(new PdfConfig {
marginTop := "0.3in"
marginBottom := "0.3in"
marginLeft := "0in"
marginRight := "0in"
})
val page: String = "<div class='printpage'>"+userData.html+"</div>"
val baseURL: String = Play.application.path+"/EmailHistory/"+username+"_email_temp.pdf"
val f = new FileOutputStream(baseURL)
// Save the PDF generated from the above HTML into a Byte Array
val outputStream = new ByteArrayOutputStream
pdf.run(page, outputStream)
outputStream.writeTo(f)
That gives me [RuntimeException: no exit code: process destroyed.] on pdf.run(page, outputStream) command.. Is there any way to fix that?
Note: I don't have any problem running that code on my Mac.
The text was updated successfully, but these errors were encountered:
On Windows 8, I try to run below code:
That gives me
[RuntimeException: no exit code: process destroyed.]
onpdf.run(page, outputStream)
command.. Is there any way to fix that?Note: I don't have any problem running that code on my Mac.
The text was updated successfully, but these errors were encountered: