Sorted!
Thank you.
On Monday, 3 September 2018 17:32:15 UTC+12, Alexander Yakushev wrote:
>
> I suspect the problem is with map which is lazy. If you discard the
> result of the top-level expression it might not be fully completed or not
> even run at all.
>
> To force a lazy collection (thus,
I suspect the problem is with map which is lazy. If you discard the result
of the top-level expression it might not be fully completed or not even run
at all.
To force a lazy collection (thus, triggering the side effects you desire)
you could do the following things:
(mapv close pages)
I have a problem related to disposing of resources.
I’m trying to retrieve portions of pdf files and combine them into a new
pdf file. I’m using Apache PDFBox for the purpose.
Splitting a pdf into pages creates a PDDocument for each page, and
PDDocuments need to be explicitly closed. If you do not