Am 26.04.2015 um 18:26 schrieb Tilman Hausherr:
Am 26.04.2015 um 18:02 schrieb Philippe de Rochambeau:
- when I run the program, I get warning message stating that one of the PDDocuments hasn't been closed properly, although I close all PDDocuments
This one I can answer:

final PDDocument templateDoc = new PDDocument().load(...)

correct this to

final PDDocument templateDoc = PDDocument().load(...)

oops I mean
final PDDocument templateDoc = PDDocument.load(...)

Tilman



Your code creates an empty document, then uses a static call to load another. Your IDE should bring a warning, if it is good :-)

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to