You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2019/04/05 15:02:00 UTC
[jira] [Closed] (PDFBOX-3287) COSStream has been closed and cannot
be read. Perhaps its enclosing PDDocument has been closed?
[ https://issues.apache.org/jira/browse/PDFBOX-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-3287.
-----------------------------------
Resolution: Cannot Reproduce
Closing. Please reopen if you can bring up a way to reproduce. Also make sure you're using a current jdk version. I remember a report about a PDDocument being finalized despite that it was still used.
> COSStream has been closed and cannot be read. Perhaps its enclosing PDDocument has been closed?
> -----------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3287
> URL: https://issues.apache.org/jira/browse/PDFBOX-3287
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: Windows
> Reporter: Alexandros Karargyris
> Priority: Critical
>
> I am using the example at https://github.com/apache/pdfbox/blob/93339a0fb36c2cfd80e4837cc4c4206bf3a3877a/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java#L69
> to extract images from a PDF page and save it to a file. However I am running to the following error at this line : https://github.com/apache/pdfbox/blob/93339a0fb36c2cfd80e4837cc4c4206bf3a3877a/tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java#L77
> ``
> COSStream has been closed and cannot be read. Perhaps its enclosing PDDocument has been closed?
> at org.apache.pdfbox.cos.COSStream.checkClosed(COSStream.java:78)
> at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:156)
> at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
> at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147)
> at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70)
> at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385)
> ``
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org