You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Justin LeFebvre (JIRA)" <ji...@apache.org> on 2009/05/04 17:41:30 UTC
[jira] Commented: (PDFBOX-453) FlateFilter decode() throwing
OutOfMemoryError
[ https://issues.apache.org/jira/browse/PDFBOX-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705629#action_12705629 ]
Justin LeFebvre commented on PDFBOX-453:
----------------------------------------
Using the current version of the trunk, the PDF file s417sec_1.pdf works fine. PDFBox didn't have an issue with extracting the text. However, the broken file also got the OutOfMemoryError.
> FlateFilter decode() throwing OutOfMemoryError
> ----------------------------------------------
>
> Key: PDFBOX-453
> URL: https://issues.apache.org/jira/browse/PDFBOX-453
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Environment: OSX, Windows, Centos 5.2
> Reporter: Paul Sowden
> Attachments: s417sec_1.pdf, s4uk12ter_1.pdf
>
>
> When parsing certain PDF files an OutOfMemoryError occurs at FlateFilter line 100. The files in question are not big.
> An exception occured in parsing the PDF Document.
> java.lang.OutOfMemoryError
> at java.util.zip.Inflater.inflateBytes(Native Method)
> at java.util.zip.Inflater.inflate(Inflater.java:221)
> at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:135)
> at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:100)
> at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:279)
> at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
> at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
> at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:367)
> at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:325)
> at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:50)
> at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:493)
> at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:214)
> at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:173)
> at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:335)
> at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259)
> at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:215)
> at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:148)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.