Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RuntimeException: no exit code: process destroyed.] on pdf.run command #22

Open
jeffryhartanto opened this issue Aug 19, 2015 · 0 comments
Labels

Comments

@jeffryhartanto
Copy link

On Windows 8, I try to run below code:

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.

@cloudify cloudify added the bug label Nov 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants