Re: [iText-questions] NullpointerException when merging pdf with form AND freeing reader

2014-07-14 Thread iText mailing list
On 7/14/2014 1:20 PM, Emiel Ackermann wrote: > Is this a bug, or is it simply not possible to merge forms, while > freeing readers? It's not possible to free the PdfReader in "mergeFields mode". If we did allow freeing the reader, we'd not be able to properly build the fields tree. We will add

[iText-questions] NullpointerException when merging pdf with form AND freeing reader

2014-07-14 Thread Emiel Ackermann
Dear iText community, I'm trying to copy a pdf containing a form (copy.mergeFields()), while limiting the memory usage(copy.freeReader(reader)) with code similar to this main class: import java.io.ByteArrayOutputStream; import java.io.IOException; import com.itextpdf.text.Document; import com.i