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 2016/03/23 22:56:25 UTC

[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=15209167#comment-15209167 ] 

Tilman Hausherr edited comment on PDFBOX-3287 at 3/23/16 9:55 PM:
------------------------------------------------------------------

That is weird because that  file is part of the build tests, i.e. this runs at least every few days, sometimes several times per day. I just ran the test without any trouble. Can you tell more about your environment? What is your code?


was (Author: tilman):
That is weird because that  file is part of the build tests, i.e. this runs at least every few days, sometimes several times per day. I just ran the test without any trouble. Can you tell more about your environment? Are you just running the test or have you put something on top?

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org