Write large PDFs with Java sequentially
Posted
by
Benjamin Muschko
on Stack Overflow
See other posts from Stack Overflow
or by Benjamin Muschko
Published on 2011-01-03T18:15:29Z
Indexed on
2011/01/06
7:53 UTC
Read the original article
Hit count: 280
I am looking for a Java library that let's you write large PDFs sequentially with a minimum amount of memory. Most of the libraries I had a look at has to build up the document in memory first before you can actually write it.
The problem I have to deal with are OutOfMemoryErrors. It would be great if I could flush the writer programmatically whenever needed e.g. for each page.
Does anyone have any recommendations? I need something with a license along the lines of the LGPL (so not the GPL or the Affero GPL that iText uses).
© Stack Overflow or respective owner