Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A couple of small improvements in the "SaveDocument" handler in `src/…
…core/worker.js` - Check that the "Info"-entry, in the XRef-trailer, is actually a dictionary before accessing it. This is similar to the `PDFDocument.documentInfo` method and follows the general principal of validating data carefully before accessing it, given how often PDF-software may create corrupt PDF files. - Slightly simplify the "XFA"-lookup, since there's no point in trying to fetch something from the empty dictionary.
- Loading branch information