Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
PDDocument.importPage creates two inputstreams from page.getContents(), but uses one (for real). The first is only used to check if it exists.
InputStream in = null; try { in = page.getContents(); if (in != null) { PDStream dest = new PDStream(this, page.getContents(), COSName.FLATE_DECODE);