1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Merge pull request #19620 from calixteman/cmyk_icc

[api-minor] Use an icc profile for converting CMYK to RGB
This commit is contained in:
calixteman 2025-03-10 16:55:48 +01:00 committed by GitHub
commit 13474aca63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 224 additions and 274 deletions

View file

@ -406,6 +406,17 @@ const defaultOptions = {
value: false,
kind: OptionKind.API,
},
iccUrl: {
/** @type {string} */
value:
// eslint-disable-next-line no-nested-ternary
typeof PDFJSDev === "undefined"
? "../external/iccs/"
: PDFJSDev.test("MOZCENTRAL")
? "resource://pdf.js/web/iccs/"
: "../web/iccs/",
kind: OptionKind.API,
},
isEvalSupported: {
/** @type {boolean} */
value: true,