Each API call should really be wrapped in a try/catch to return a user friendly HTTP status code and error message if there's an exception in the mupdf library.
For example opening a file that is corrupt, or not a PDF file, or loading a page that is out of range, etc.
Each API call should really be wrapped in a try/catch to return a user friendly HTTP status code and error message if there's an exception in the mupdf library.
For example opening a file that is corrupt, or not a PDF file, or loading a page that is out of range, etc.