We currently have a application that generates a pdf document and automatically names it based on {UniqueID-DocCode-StartDate-StartTime}, all this data is coming from a db via our application. We are getting one major problem.
- pdf contents and filename are getting mixed up. e.g
Filename: 123456-Doc001-28042017-1415.pdf
Contents: 987654-Doc002-28042017-1312
My problem is identifying the pdfs that have failed (contents != filename) and re-triggering them.
The filename would match the contents in terms of being present, but the contents is structured as a letter, so a direct compare wouldn't work, also they vary in length dramatically depending on how complicated the contents is.
So, my wish list would be:
- Ideally check for each parameter from filename. However just being able to check
UniqueIDwould be sufficient. - A way of either moving failed files, renaming them or a report back of failed files in a list.
- Run as a scheduled job or constantly from a directory.
Let me know if there is any particular info you need and I should be able to get it to you.