0

i am able to read normal pdf file which does not have any password properly using pdfviewer.jar, however when i try to read password protected file i get java.lang.StackOverflowError.

can any one tell me what is wrong ?

following is the code

   Intent intent = new Intent(this, MyPdfViewerActivity.class);
   intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME,"mnt/sdcard/sample.pdf");        
   startActivity(intent);
Balayesu Chilakalapudi
  • 1,386
  • 3
  • 19
  • 43
Ether
  • 125
  • 1
  • 9
  • Can you please also check the password length for this? I have faced similar issue when password generated was above 20 characters. – Aditya Mar 24 '14 at 10:27
  • yes , the password length is 11 characters – Ether Mar 24 '14 at 10:29
  • my problem is exactly like this https://github.com/jblough/Android-Pdf-Viewer-Library/issues/8 , i did the changes of cipher.init but it is not working for me – Ether Mar 24 '14 at 10:31
  • Did you tried by manually opening the encrypted PDF file using the password generated by your app? – Aditya Mar 24 '14 at 10:39
  • yes i tried to open it with polaris it prompts for password and on entering password it opens PDF – Ether Mar 24 '14 at 10:42

1 Answers1

0

the solution mentioned on github.com/jblough/Android-Pdf-Viewer-Library/issues/8 worked for me , i was doing changes in src folder of PDF viewer but my app was still referencing jar (which did not have that changes)

Ether
  • 125
  • 1
  • 9