Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0.26
-
None
-
None
-
JDK11.0.2 on MacOS 12.4
Description
Extracting text from the attached x.pdf:
PDDocument pdDocument = PDDocument.load(new File("/tmp/x.pdf"));
PDFTextStripper stripper = new PDFTextStripper();
stripper.getText(pdDocument);
succeeds with -Xmx1G but throws OOME with -Xmx900m
Heapdump shows 2923 instances of TrueTypeFont, PDRessources.cache contains SoftReferences to lots of fonts keyed by different COSObjects;