[
https://issues.apache.org/jira/browse/PDFBOX-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008675#comment-15008675
]
Maruan Sahyoun commented on PDFBOX-3113:
----------------------------------------
For PDFBox 2.0 you could use
- {{PDPage.getContents()}} which returns an {{InputStream}} or
- {{PDPage.getContentStreams()}} which returns {{Iterator<PDStream>}}
would that help?
> Scratch file already closed using PDStream
> ------------------------------------------
>
> Key: PDFBOX-3113
> URL: https://issues.apache.org/jira/browse/PDFBOX-3113
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Attachments: PDFToPDF2.java
>
>
> I get when i try to create a PDStream from a page contents:
> Exception in thread "main" java.io.IOException: Scratch file already closed
> at org.apache.pdfbox.io.ScratchFile.checkClosed(ScratchFile.java:390
> We used to be able to do:
> PDStream pdStream = page.getContents();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]