Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the implementation of the
PDFDocument.fingerprints
-getter
- Add explicit `length` validation of the /ID entries. Given the `EMPTY_FINGERPRINT` constant we're already *implicitly* assuming a particular length. - Move the constants into the `fingerprints`-getter, since they're not used anywhere else. - Replace the `hexString` helper function with the standard `Uint8Array.prototype.toHex` method; see https://github.com/tc39/proposal-arraybuffer-base64
- Loading branch information