[
https://issues.apache.org/jira/browse/PDFBOX-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209840#comment-15209840
]
Tilman Hausherr commented on PDFBOX-3287:
-----------------------------------------
Another thing to try in the meantime: use the RC3 version or earlier in maven
to see if it worked there.
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]