If I have a bad PDF file(for example file with text "bad PDF"), the function fz_open_document will fail unrecoverable. Programs use MuPDF will just crash when a bad PDF file is opened. I wish the function can return NULL if failed, it will be more user-friendly. Comment 1 Tor Ande...