We receive bids electronically and the are tagged as SEALED which no one can open until the bid opening. I have had several bids that were uploaded and the pdf was corrupted. Technically they cannot resubmit because the solicitation is closed. Any ideas on validated the pdf upon receipt or storage in the repository?
Question
Question
Validating a pdf that was uploaded in a form or in repository
Replies
What kind of corruption did you experience? Some kinds would be easier to detect with an automated process than others.
I dont know what kind. When trying to open a error is supplied saying file cant be opened - corrupted.
The reason I ask is that preventing the corruption may end up being easier than detecting it. Maybe you want to pursue both approaches, I'd suggest working with your SP to open a support case.
In terms of detecting, there isn't anything built-in that I'm aware of. You could potentially do something with Workflow, but it would probably involve writing code to try to open the file with a PDF library and see if it succeeds. If it's as seriously broken as that error message makes it sound, that might be all you need to do, if it's more subtly corrupted it could be more work to detect.
Maybe passing it to Workflow and seeing if you can download the electronic document on the corrupted one?
If that fails then you could use try-catch logic to catch corrupted ones and get notified or some alternative.
Not sure if this is a solution, but sounds worth a try?