[ 
https://issues.apache.org/jira/browse/PDFBOX-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889487#action_12889487
 ] 

Mario Sangiorgio edited comment on PDFBOX-778 at 7/17/10 6:25 AM:
------------------------------------------------------------------

I was using PDFBox 1.1.0, I'm going to update it right now and if I still have 
troubles I'll let you know. Thanks for the reply!

      was (Author: mariosangiorgio):
    I was using PDFBoc 1.1.0, I'm going to update it right now and if I still 
have troubles I'll let you know. Thanks for the reply!
  
> OutOfMemory when extracting text from pdf
> -----------------------------------------
>
>                 Key: PDFBOX-778
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-778
>             Project: PDFBox
>          Issue Type: Bug
>         Environment: Mac OS X
>            Reporter: Mario Sangiorgio
>         Attachments: 92.pdf
>
>
> I have to extract text from hundreds of documents, but at a certain point I 
> get an out of memory exception.
> It seems that the memory leak is related to a single file that I attached.
> Please let me know if you need more details.
> This is the stacktrace of the exception:
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
>       at java.util.Arrays.copyOf(Arrays.java:2734)
>       at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
>       at java.util.ArrayList.add(ArrayList.java:351)
>       at 
> org.apache.pdfbox.pdfparser.PDFStreamParser.parse(PDFStreamParser.java:103)
>       at org.apache.pdfbox.cos.COSStream.getStreamTokens(COSStream.java:119)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
>       at 
> org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:367)
>       at 
> org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:291)
>       at 
> org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:247)
>       at it.polimi.utils.TextStripper.getFullText(TextStripper.java:57)
>       at it.polimi.utils.TextStripper.getFullText(TextStripper.java:72)
>       at it.polimi.utils.TextStripper.getContent(TextStripper.java:30)
>       at applications.ExtractAbstracts.convert(ExtractAbstracts.java:47)
>       at applications.ExtractAbstracts.convert(ExtractAbstracts.java:36)
>       at applications.ExtractAbstracts.main(ExtractAbstracts.java:17)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to