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

Attachments

1
  • 10 Apr 2018, 03:13 PM

Activity

Carlos Ruiz 
April 11, 2018 at 11:12 AM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 10, 2018 at 3:13 PM
Updated June 2, 2018 at 12:53 PM
Resolved April 11, 2018 at 11:09 AM