Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Out Of Memory error

Help
2013-02-08
2013-02-08
  • Java Chacha
    Java Chacha
    2013-02-08

    I am parsing a PDF file using PDF Clown and getting the below outofmemory error

    I have tried to set ANT OPTS to 4 GB but did not help.

    Any help ? I cannot attach the PDF file here but can email if someone needs to have a look at that

     [java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap spa
    

    ce
    [java] at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(C
    ffParser.java:313)
    [java] at org.pdfclown.documents.contents.fonts.CffParser$Index.parse(C
    ffParser.java:324)
    [java] at org.pdfclown.documents.contents.fonts.CffParser.load(CffParse
    r.java:669)
    [java] at org.pdfclown.documents.contents.fonts.CffParser.<init>(CffPar
    ser.java:640)
    [java] at org.pdfclown.documents.contents.fonts.Type1Font.getNativeEnco
    ding(Type1Font.java:104)
    [java] at org.pdfclown.documents.contents.fonts.Type1Font.loadEncoding(
    Type1Font.java:141)
    [java] at org.pdfclown.documents.contents.fonts.SimpleFont.onLoad(Simpl
    eFont.java:118)
    [java] at org.pdfclown.documents.contents.fonts.Font.load(Font.java:737
    )
    [java] at org.pdfclown.documents.contents.fonts.Font.<init>(Font.java:3
    51)
    [java] at org.pdfclown.documents.contents.fonts.SimpleFont.<init>(Simpl
    eFont.java:62)
    [java] at org.pdfclown.documents.contents.fonts.Type1Font.<init>(Type1F
    ont.java:75)
    [java] at org.pdfclown.documents.contents.fonts.Font.wrap(Font.java:249
    )
    [java] at org.pdfclown.documents.contents.FontResources.wrap(FontResour
    ces.java:64)
    [java] at org.pdfclown.documents.contents.FontResources.wrap(FontResour
    ces.java:1)
    [java] at org.pdfclown.documents.contents.ResourceItems.get(ResourceIte
    ms.java:158)
    [java] at org.pdfclown.documents.contents.objects.SetFont.getResource(S
    etFont.java:119)
    [java] at org.pdfclown.documents.contents.objects.SetFont.getFont(SetFo
    nt.java:83)
    [java] at org.pdfclown.documents.contents.objects.SetFont.scan(SetFont.
    java:97)
    [java] at org.pdfclown.documents.contents.ContentScanner.moveNext(Conte
    ntScanner.java:1310)
    [java] at org.pdfclown.documents.contents.ContentScanner$TextWrapper.ex
    tract(ContentScanner.java:791)
    [java] at org.pdfclown.documents.contents.ContentScanner$TextWrapper.(ContentScanner.java:757)
    [java] at org.pdfclown.documents.contents.ContentScanner$TextWrapper.
    (ContentScanner.java:750)
    [java] at org.pdfclown.documents.contents.ContentScanner$GraphicsObject
    Wrapper.get(ContentScanner.java:670)
    [java] at org.pdfclown.documents.contents.ContentScanner$GraphicsObject
    Wrapper.access$0(ContentScanner.java:662)
    [java] at org.pdfclown.documents.contents.ContentScanner.getCurrentWrap
    per(ContentScanner.java:1134)
    [java] at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:6
    33)
    [java] at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:6
    47)
    [java] at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:6
    47)
    [java] at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:6
    47)
    [java] at org.pdfclown.tools.TextExtractor.extract(TextExtractor.java:2
    96)
    [java] at com.pdflinking.MakeLinks.scan(MakeLinks.java:289)
    [java] at com.pdflinking.MakeLinks.processFile(MakeLinks.java:142)

     
  • Java Chacha
    Java Chacha
    2013-02-08

    I have also pasted the PDF file now as attachement. Please help me out