I need to convert encrypted pdf->text with the password given by the user.
I am able to open(unencrypted) pdf by using VC++ using zlib.
I am opening pdf in 'rb' mode
Do I need to write a custom function to decrypt stream by the given password ?
[STATUS: code working for unencrypted PDF ]
I have found code in java which do PDF to Text extraction by using PDFBox-0.7.3, but have some issues with the code.
There is a null pointer exception at
AccessPermission ap = document.getCurrentAccessPermission();
[STATUS: code just creates empty file ]
Am I doing extraction of the pdf in wrong way ?
What can be the correct steps to decrypt PDF ?