Text extraction consuming lots of memory
<pre><code>  I am extracting text from pdf using itext in android, but the problem is it is consuming too much memory and the application crashes after 2-3 runs.Can anyone help.

     public void nextPage() {
                try {
                    if (i &lt;= numberOfPages) {
                        s = extractor.getTextFromPage(i);

                        s = s.replaceAll("\\\\", " ");
                        tv.setText(s);
                        tv2.setText("Page no." + i);

                    } else if (i &gt; numberOfPages) {
                        Toast.makeText(PDFView.this, "Already at last page",
                                Toast.LENGTH_SHORT).show();
                    }

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }


    public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.pdf_view);
            tv = (TextView) findViewById(R.id.TextView01);
            tv2 = (TextView) findViewById(R.id.TextView02);
            Bundle extras = getIntent().getExtras();

            fileName = extras.getString("fileName");

            System.out.println("@@@@!!!" + fileName);

            try {
                reader = new PdfReader(fileName);
                numberOfPages = reader.getNumberOfPages();
                System.out.println("This document contains:" + numberOfPages);
                extractor = new PdfTextExtractor(reader);
                nextPage();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
</code></pre>

<p>I am adding the stack trace which shows the amount of memory the app is consuming when the file is clicked.</p>

<pre><code>11-22 11:42:08.815: INFO/System.out(581): /sdcard/Moby_Dick_NT.pdf
11-22 11:42:08.855: INFO/ActivityManager(68): Starting: Intent { cmp=browse.com/.PDFView (has extras) } from pid 581
11-22 11:42:08.995: INFO/ARMAssembler(68): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x43d1e838:0x43d1ea00] in 688474 ns
11-22 11:42:09.145: WARN/Resources(581): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050005}
11-22 11:42:09.185: WARN/Resources(581): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050002}
11-22 11:42:09.215: INFO/System.out(581): @@@@!!!/sdcard/Moby_Dick_NT.pdf
11-22 11:42:09.445: ERROR/dalvikvm(581): Could not find class 'org.bouncycastle.cms.CMSEnvelopedData', referenced from method com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj
11-22 11:42:09.445: WARN/dalvikvm(581): VFY: unable to resolve new-instance 2464 (Lorg/bouncycastle/cms/CMSEnvelopedData;) in Lcom/itextpdf/text/pdf/PdfReader;
11-22 11:42:09.445: DEBUG/dalvikvm(581): VFY: replacing opcode 0x22 at 0x02c9
11-22 11:42:09.465: DEBUG/dalvikvm(581): VFY: dead code 0x02cb-0319 in Lcom/itextpdf/text/pdf/PdfReader;.readDecryptedDocObj ()V
11-22 11:42:09.465: DEBUG/dalvikvm(581): VFY: dead code 0x03ed-03f4 in Lcom/itextpdf/text/pdf/PdfReader;.readDecryptedDocObj ()V
11-22 11:42:09.465: DEBUG/dalvikvm(581): VFY: dead code 0x04b5-04b9 in Lcom/itextpdf/text/pdf/PdfReader;.readDecryptedDocObj ()V
11-22 11:42:10.235: DEBUG/dalvikvm(581): GC_CONCURRENT freed 261K, 50% free 2965K/5831K, external 899K/1038K, paused 5ms+8ms
11-22 11:42:11.135: DEBUG/dalvikvm(581): GC_CONCURRENT freed 446K, 51% free 3031K/6087K, external 899K/1038K, paused 5ms+5ms
11-22 11:42:11.775: DEBUG/dalvikvm(581): GC_CONCURRENT freed 526K, 52% free 3024K/6215K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:12.305: DEBUG/dalvikvm(581): GC_CONCURRENT freed 457K, 52% free 3028K/6215K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:12.835: DEBUG/dalvikvm(581): GC_CONCURRENT freed 469K, 52% free 3026K/6215K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:13.686: DEBUG/dalvikvm(581): GC_CONCURRENT freed 464K, 52% free 3022K/6215K, external 899K/1038K, paused 4ms+5ms
11-22 11:42:14.476: DEBUG/dalvikvm(581): GC_CONCURRENT freed 462K, 52% free 3034K/6215K, external 899K/1038K, paused 5ms+8ms
11-22 11:42:15.106: DEBUG/dalvikvm(581): GC_CONCURRENT freed 465K, 52% free 3034K/6215K, external 899K/1038K, paused 7ms+8ms
11-22 11:42:15.705: DEBUG/dalvikvm(581): GC_CONCURRENT freed 453K, 52% free 3025K/6215K, external 899K/1038K, paused 7ms+8ms
11-22 11:42:16.315: DEBUG/dalvikvm(581): GC_CONCURRENT freed 451K, 52% free 3033K/6215K, external 899K/1038K, paused 5ms+8ms
11-22 11:42:16.915: DEBUG/dalvikvm(581): GC_CONCURRENT freed 455K, 52% free 3032K/6215K, external 899K/1038K, paused 7ms+8ms
11-22 11:42:17.545: DEBUG/dalvikvm(581): GC_CONCURRENT freed 467K, 52% free 3039K/6215K, external 899K/1038K, paused 7ms+8ms
11-22 11:42:18.185: DEBUG/dalvikvm(581): GC_CONCURRENT freed 469K, 52% free 3022K/6215K, external 899K/1038K, paused 7ms+6ms
11-22 11:42:18.955: WARN/ActivityManager(68): Activity idle timeout for HistoryRecord{4072f530 browse.com/.PDFView}
11-22 11:42:19.005: DEBUG/dalvikvm(581): GC_CONCURRENT freed 449K, 52% free 3022K/6215K, external 899K/1038K, paused 5ms+12ms
11-22 11:42:19.625: DEBUG/dalvikvm(581): GC_CONCURRENT freed 448K, 51% free 3097K/6215K, external 899K/1038K, paused 5ms+8ms
11-22 11:42:20.355: DEBUG/dalvikvm(581): GC_CONCURRENT freed 443K, 50% free 3158K/6279K, external 899K/1038K, paused 8ms+9ms
11-22 11:42:21.055: DEBUG/dalvikvm(581): GC_CONCURRENT freed 406K, 49% free 3286K/6343K, external 899K/1038K, paused 5ms+9ms
11-22 11:42:21.095: INFO/dalvikvm(581): Jit: resizing JitTable from 512 to 1024
11-22 11:42:21.855: DEBUG/dalvikvm(581): GC_CONCURRENT freed 417K, 48% free 3394K/6471K, external 899K/1038K, paused 8ms+9ms
11-22 11:42:22.615: DEBUG/dalvikvm(581): GC_CONCURRENT freed 439K, 47% free 3499K/6599K, external 899K/1038K, paused 7ms+9ms
11-22 11:42:23.665: DEBUG/dalvikvm(581): GC_CONCURRENT freed 498K, 47% free 3633K/6791K, external 899K/1038K, paused 8ms+6ms
11-22 11:42:24.525: DEBUG/dalvikvm(390): GC_EXPLICIT freed 321K, 55% free 2533K/5511K, external 716K/1038K, paused 481ms
11-22 11:42:24.545: DEBUG/dalvikvm(581): GC_CONCURRENT freed 504K, 46% free 3776K/6919K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:25.435: DEBUG/dalvikvm(581): GC_CONCURRENT freed 553K, 45% free 3921K/7111K, external 899K/1038K, paused 8ms+10ms
11-22 11:42:26.355: DEBUG/dalvikvm(581): GC_CONCURRENT freed 591K, 45% free 4073K/7303K, external 899K/1038K, paused 7ms+9ms
11-22 11:42:27.435: DEBUG/dalvikvm(581): GC_CONCURRENT freed 683K, 45% free 4230K/7559K, external 899K/1038K, paused 7ms+9ms
11-22 11:42:28.615: DEBUG/dalvikvm(581): GC_CONCURRENT freed 685K, 44% free 4414K/7751K, external 899K/1038K, paused 5ms+20ms
11-22 11:42:29.695: DEBUG/dalvikvm(581): GC_CONCURRENT freed 747K, 43% free 4602K/8007K, external 899K/1038K, paused 7ms+6ms
11-22 11:42:30.716: DEBUG/dalvikvm(581): GC_CONCURRENT freed 789K, 42% free 4810K/8263K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:31.715: DEBUG/dalvikvm(581): GC_CONCURRENT freed 823K, 41% free 5028K/8519K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:32.755: DEBUG/dalvikvm(581): GC_CONCURRENT freed 900K, 41% free 5264K/8839K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:34.155: DEBUG/dalvikvm(581): GC_CONCURRENT freed 910K, 40% free 5503K/9095K, external 899K/1038K, paused 5ms+6ms
11-22 11:42:35.265: DEBUG/dalvikvm(581): GC_CONCURRENT freed 968K, 39% free 5759K/9415K, external 899K/1038K, paused 8ms+7ms
11-22 11:42:36.415: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1064K, 39% free 6041K/9799K, external 899K/1038K, paused 9ms+7ms
11-22 11:42:37.665: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1141K, 38% free 6340K/10183K, external 899K/1038K, paused 8ms+7ms
11-22 11:42:39.345: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1200K, 38% free 6655K/10567K, external 899K/1038K, paused 8ms+7ms
11-22 11:42:40.655: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1246K, 37% free 6985K/10951K, external 899K/1038K, paused 8ms+6ms
11-22 11:42:42.055: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1335K, 36% free 7336K/11399K, external 899K/1038K, paused 7ms+6ms
11-22 11:42:43.985: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1453K, 36% free 7719K/11911K, external 899K/1038K, paused 7ms+6ms
11-22 11:42:45.465: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1548K, 35% free 8126K/12423K, external 899K/1038K, paused 167ms
11-22 11:42:46.945: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1519K, 34% free 8525K/12807K, external 899K/1038K, paused 184ms
11-22 11:42:48.796: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1496K, 33% free 8922K/13191K, external 899K/1038K, paused 310ms
11-22 11:42:50.265: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1532K, 32% free 9325K/13639K, external 899K/1038K, paused 190ms
11-22 11:42:51.755: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1508K, 31% free 9722K/14023K, external 899K/1038K, paused 212ms
11-22 11:42:53.515: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1516K, 30% free 10085K/14407K, external 899K/1038K, paused 393ms
11-22 11:42:54.525: INFO/dalvikvm(581): Jit: resizing JitTable from 1024 to 2048
11-22 11:42:55.755: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 1619K, 30% free 10357K/14791K, external 899K/1038K, paused 224ms
11-22 11:42:59.065: DEBUG/dalvikvm(581): GC_CONCURRENT freed 2064K, 32% free 10371K/15047K, external 899K/1038K, paused 6ms+9ms
11-22 11:43:00.515: INFO/System.out(581): This document contains:1047
11-22 11:43:00.765: INFO/ActivityManager(68): Starting: Intent { act=android.speech.tts.engine.CHECK_TTS_DATA cmp=com.svox.pico/.CheckVoiceData } from pid 581
11-22 11:43:01.065: INFO/ActivityManager(68): Start proc android.tts for service android.tts/.TtsService: pid=765 uid=10011 gids={3003, 1015}
11-22 11:43:01.106: INFO/TextToSpeech.java(581): initTts() successfully bound to service
11-22 11:43:01.595: DEBUG/dalvikvm(33): GC_EXPLICIT freed 11K, 53% free 2531K/5379K, external 716K/1038K, paused 504ms
11-22 11:43:01.865: INFO/ActivityManager(68): Displayed browse.com/.PDFView: +52s967ms
11-22 11:43:01.955: DEBUG/dalvikvm(33): GC_EXPLICIT freed &lt;1K, 53% free 2531K/5379K, external 716K/1038K, paused 363ms
11-22 11:43:02.165: DEBUG/dalvikvm(33): GC_EXPLICIT freed &lt;1K, 53% free 2531K/5379K, external 716K/1038K, paused 211ms
11-22 11:43:02.495: DEBUG/installd(35): DexInv: --- BEGIN '/system/app/TtsService.apk' ---
11-22 11:43:02.755: DEBUG/dalvikvm(773): DexOpt: load 30ms, verify+opt 109ms
11-22 11:43:02.765: DEBUG/installd(35): DexInv: --- END '/system/app/TtsService.apk' (success) ---
11-22 11:43:02.915: VERBOSE/TtsService(765): TtsService.onCreate()
11-22 11:43:03.055: VERBOSE/TtsService(765): About to load /system/lib/libttspico.so, applyFilter=true
11-22 11:43:03.145: VERBOSE/TtsService(765): TtsService.setLanguage(eng, USA, )
11-22 11:43:03.335: INFO/SVOX Pico Engine(765): loaded en-US successfully
11-22 11:43:03.335: INFO/SynthProxy(765): setting speech rate to 100
11-22 11:43:20.355: WARN/KeyCharacterMap(581): No keyboard for id 0
11-22 11:43:20.355: WARN/KeyCharacterMap(581): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
11-22 11:43:20.375: INFO/TtsService(765): Stopping
11-22 11:43:20.385: INFO/TtsService(765): Stopped
11-22 11:43:20.675: DEBUG/dalvikvm(581): GC_EXPLICIT freed 1472K, 31% free 10511K/15047K, external 899K/1038K, paused 290ms
11-22 11:43:20.685: WARN/ActivityManager(68): Duplicate finish request for HistoryRecord{4072f530 browse.com/.PDFView}
11-22 11:43:25.265: INFO/System.out(581): /sdcard/The_little_prince.pdf
11-22 11:43:25.305: INFO/ActivityManager(68): Starting: Intent { cmp=browse.com/.PDFView (has extras) } from pid 581
11-22 11:43:25.545: WARN/Resources(581): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050005}
11-22 11:43:25.565: WARN/Resources(581): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f050002}
11-22 11:43:25.605: INFO/System.out(581): @@@@!!!/sdcard/The_little_prince.pdf
11-22 11:43:28.285: INFO/System.out(581): This document contains:78
11-22 11:43:28.815: DEBUG/dalvikvm(581): GC_CONCURRENT freed 1647K, 29% free 10794K/15175K, external 899K/1038K, paused 6ms+12ms
11-22 11:43:29.195: INFO/dalvikvm-heap(581): Clamp target GC heap from 16.272MB to 16.000MB
11-22 11:43:29.195: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 222K, 29% free 11104K/15495K, external 899K/1038K, paused 205ms
11-22 11:43:29.205: INFO/dalvikvm-heap(581): Forcing collection of SoftReferences for 191604-byte allocation
11-22 11:43:29.415: INFO/dalvikvm-heap(581): Clamp target GC heap from 16.258MB to 16.000MB
11-22 11:43:29.415: DEBUG/dalvikvm(581): GC_FOR_MALLOC freed 14K, 29% free 11090K/15495K, external 899K/1038K, paused 207ms
11-22 11:43:29.425: ERROR/dalvikvm-heap(581): Out of memory on a 191604-byte allocation.
11-22 11:43:29.425: INFO/dalvikvm(581): "main" prio=5 tid=1 RUNNABLE
11-22 11:43:29.425: INFO/dalvikvm(581):   | group="main" sCount=0 dsCount=0 obj=0x4001f1a8 self=0xce48
11-22 11:43:29.435: INFO/dalvikvm(581):   | sysTid=581 nice=0 sched=0/0 cgrp=default handle=-1345006528
11-22 11:43:29.435: INFO/dalvikvm(581):   | schedstat=( 41817751850 11638873769 4034 )
11-22 11:43:29.435: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.PdfEncodings.convertToString((null):~-1)
11-22 11:43:29.435: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.GlyphList.&lt;clinit&gt;((null):-1)
11-22 11:43:29.435: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.DocumentFont.doType1TT((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.DocumentFont.&lt;init&gt;((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.CMapAwareDocumentFont.&lt;init&gt;((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor$SetTextFont.invoke((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.invokeOperator((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.processContent((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at com.itextpdf.text.pdf.parser.PdfTextExtractor.getTextFromPage((null):-1)
11-22 11:43:29.445: INFO/dalvikvm(581):   at browse.com.PDFView.nextPage(PDFView.java:57)
11-22 11:43:29.445: INFO/dalvikvm(581):   at browse.com.PDFView.onCreate(PDFView.java:106)
11-22 11:43:29.445: INFO/dalvikvm(581):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-22 11:43:29.445: INFO/dalvikvm(581):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
11-22 11:43:29.455: INFO/dalvikvm(581):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
11-22 11:43:29.455: INFO/dalvikvm(581):   at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-22 11:43:29.455: INFO/dalvikvm(581):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
11-22 11:43:29.455: INFO/dalvikvm(581):   at android.os.Handler.dispatchMessage(Handler.java:99)
11-22 11:43:29.465: INFO/dalvikvm(581):   at android.os.Looper.loop(Looper.java:123)
11-22 11:43:29.465: INFO/dalvikvm(581):   at android.app.ActivityThread.main(ActivityThread.java:3683)
11-22 11:43:29.465: INFO/dalvikvm(581):   at java.lang.reflect.Method.invokeNative(Native Method)
11-22 11:43:29.465: INFO/dalvikvm(581):   at java.lang.reflect.Method.invoke(Method.java:507)
11-22 11:43:29.465: INFO/dalvikvm(581):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-22 11:43:29.465: INFO/dalvikvm(581):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-22 11:43:29.465: INFO/dalvikvm(581):   at dalvik.system.NativeStart.main(Native Method)
11-22 11:43:29.475: WARN/dalvikvm(581): Exception Ljava/lang/OutOfMemoryError; thrown while initializing Lcom/itextpdf/text/pdf/GlyphList;
11-22 11:43:29.485: DEBUG/AndroidRuntime(581): Shutting down VM
11-22 11:43:29.485: WARN/dalvikvm(581): threadid=1: thread exiting with uncaught exception (group=0x40015560)
11-22 11:43:29.505: ERROR/AndroidRuntime(581): FATAL EXCEPTION: main
11-22 11:43:29.505: ERROR/AndroidRuntime(581): java.lang.ExceptionInInitializerError
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.DocumentFont.doType1TT(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.DocumentFont.&lt;init&gt;(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.CMapAwareDocumentFont.&lt;init&gt;(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor$SetTextFont.invoke(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.invokeOperator(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.processContent(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.parser.PdfTextExtractor.getTextFromPage(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at browse.com.PDFView.nextPage(PDFView.java:57)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at browse.com.PDFView.onCreate(PDFView.java:106)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.os.Handler.dispatchMessage(Handler.java:99)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.os.Looper.loop(Looper.java:123)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at android.app.ActivityThread.main(ActivityThread.java:3683)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at java.lang.reflect.Method.invokeNative(Native Method)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at java.lang.reflect.Method.invoke(Method.java:507)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at dalvik.system.NativeStart.main(Native Method)
11-22 11:43:29.505: ERROR/AndroidRuntime(581): Caused by: java.lang.OutOfMemoryError
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.PdfEncodings.convertToString(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     at com.itextpdf.text.pdf.GlyphList.&lt;clinit&gt;(Unknown Source)
11-22 11:43:29.505: ERROR/AndroidRuntime(581):     ... 22 more
</code></pre>
