We're updating the issue view to help you get more done. 

InvoicePrint leaks open files

Description

org.adempiere.webui.process.PrintInvoice creates a single pdf from many single invoices (if more the one was generated), but leaves the single pdf files open.

The issue is caused by AEnv.mergePdf wich never closes the PdfReader it opens. They cannot be closed while looping becuause they are still needed when document.close() is called, but after that they can be closed.

See attached patch for a possible solution.

Regards,
Silvano, www.freepath.it

Environment

None

Status

Assignee

ERP OpenSource Italia

Reporter

FreePath

Labels

None

Tested By

None

Components

Fix versions

Affects versions

4.1

Priority

Major