Thanks to Kathy: File handle to item file generated by pagedimgplug needs to be closed, now that the code's moved to util. Previously a pl script called it from main and when main exited the file handle would have got closed automatically. Now that the code to create the item file is also invoked by the pdfbox ext (to extract images) and since that doesn't exit, the file handle needs to be closed. With this commit, PDFBox is able to extract images from PDFs when -pagedimg is turned on. But we found it doesn't convert PDFs that contain text into pages of images.