security - How can you read the fields from a password-protected PDF using iText when you do have the PDF password? -


i have pdf created livecycle designer in pdf 1.7.

i'd read fields in pdf on server side @ times. have password protects pdf on server side.

i able use itext non-encrypted pdfs fine...

pdfreader reader = new pdfreader(request.getinputstream()); acrofields af = reader.getacrofields(); map<string, acrofields.item> affields = af.getfields(); (string key : affields.keyset()) {     system.out.print(key + " = ");     system.out.println(af.getfield(key)); } 

but when same thing pdf password protected, seems break down. no fields returned.

is there way can send password itext , able read fields?

i have access livecycle es3 sdk well. maybe provide api that?

the answer, in case seeking it, abandon use of itext when trying read data livecycle created pdf java app. used using open source apis, forgot utilize livecycle web services provided.

they provide workbench product lets string web services together. , 1 of many web services offered encryptionservice can decrypt password protected pdf, , service can xml representation of data in pdf.

so called 2 services, , done.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -