Hi folks,
I am in dire need of your help. Any help is very much appreciated. I have a PDF that has password encryption on it. In the security properties I can see that - “Filling of Form Fields” ,“Signing” and “Printing ” is allowed - where as “Changing the Document” and “Page Extraction” is not allowed. I have tried signing this document with PoDoFo and It fails. However Adobe Reader can successfully sign this document (without asking for the password ). Here is the my code snippet. I am running it on iOS devices PdfMemDocument memDoc; memDoc.Load(aPath.UTF8String);//This is where the exception occurs. Error: *PoDoFo encounter an error. Error: 8 ePdfError_InternalLogic* * Error Description: An internal error occurred.* * Callstack:* * #0 Error Source: PdfParser.cpp:226* * Information: Unable to load objects from file.* * #1 Error Source: PdfParser.cpp:1053* * Information: Error while loading object 182 0 Offset = 33874 Index = 182* * #2 Error Source: PdfEncrypt.cpp:1216* * Information: Error AES-decryption data final* The Error seems to happen at this link status = EVP_DecryptFinal_ex(aes, textout + outLen, &dataOutMoved); A sample document is attached as a reference. The password to this doc is “abcdef”. However during the signing of these documents I may or may NOT have the password. If the attachment doesn't work, you can always use this link. https://dl.dropboxusercontent.com/u/207337482/PDF_Security_Testing/textDoc_secure.pdf Thank you -- Regards, QS
textDoc_secure.pdf
Description: Adobe PDF document
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users