Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.3
-
None
-
None
-
Windows 10/64, java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
Description
In org.apache.pdfbox.pdmodel.graphics.image.CCITTFactory the method createFromFile instantiates a new RandomAccessFile but does not close it when done. This keeps a lock on the File untill the JVM is closed.
Using close or autocloseable resolves the issue.
public static PDImageXObject createFromFile(PDDocument document, File file, int number)
throws IOException
Attachments
Issue Links
- is duplicated by
-
PDFBOX-3517 [Patch] CCITTFactory.createFromFile methods do not release lock on source file
- Closed