We have a program that runs OCR on PDF files to look for key words. This program does not work however when the PDF has been digitally signed. What I want to do is completely remove that digital signature (invalidate and delete it) so my OCR program can parse it as normal.
I am currently using this freeware program here called unsign PDF to flatten the signatures ( [login to view URL] use google translate) which works perfectly, but can only flatten one signature at a time and does not accept command line arguments.
The author of "unsign PDF" said the program is based on Java iTEXT library "flattensignatures" as per here [login to view URL]
What I need you to create is a simple windows command line executable program "[login to view URL]" that does the following:
1. Uses the flatten signature library to do exactly the same output as the program unsignpdf from here [login to view URL]
I have attached an example of a signed PDF "[login to view URL]" you can use to test the program, the file "[login to view URL]" is what it should look like after the signature is removed.
2. Accepts the arguments in the format "[login to view URL] [login to view URL] [login to view URL]
no GUI necessary, this is just a command line program to use in a script
3. If there was no signature to remove, the program should just copy the file input to output.. i.e. [login to view URL] should be identical to [login to view URL] on failure, it should NOT create a blank output PDF if there is no signature to remove, or not output at all, because this is part of a script it always needs to generate an output. Same applies if the program is run again on the output file [login to view URL]
4. Same as above, if there is any error at all, for any reason, the program should default to just creating a copy of the [login to view URL] as [login to view URL] rather than pause, crash or not output anything!
5. The program should be completely standalone not require any installation or java dependencies - just like [login to view URL]
There is a JAR version of unsignpdf here ([login to view URL]) if it's easier to decompile that and modify it to support command line arguments instead of the JAVA GUI, then that would be fine as well... unsignpdf already does everything I want except for supporting command line arguments and efforts to contact the developer have failed.
Many Thanks for looking!
PS: I am happy for you to use any programming language you like for this, as long as I end up with a standalone exe program. I.e. you can use the C# Library for iText if that works, you can even just decompile and modify the existing unsign PDF program if you like as well.. whatever is easy!
15 freelancers are bidding on average $172 for this job
Hello, Dear Client! I'm a full stack developer with over 7 year of experience. I can deliver the perfect result with JAVA or C#. I have good experience in this fields. Please ping me and discuss this in detail. Thanks