Closed erickjhorman closed 11 months ago
I've gotten a few of these too and they were almost always because I was reusing Streams. I don't think you can write to baos
with you PdfRendererBuilder and then save your document to baos
again. Try instantiating a new output stream for document.save(new_output_stream)
.
Thanks i finally solved it.
Hey When I'm trying to generate a pdf and put together with another one I'm getting this error "Caused by: java.io.IOException: Error: End-of-File, expected line"
This is my code
Anyone knows what happened?