Add check that PDF file can be opened and is not malformed

This checks that the PDF file is not malformed in some way (e.g. by
missing the EOF marker). We check this by trying to get the page count
of the letter which will be needed to display the preview of the letter.
This commit is contained in:
Katie Smith
2019-09-12 09:54:36 +01:00
parent a103dbf801
commit 5fa9e071c7
3 changed files with 37 additions and 5 deletions
Binary file not shown.