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

[api-minor] Use an icc profile for converting CMYK to RGB

This commit is contained in:
Calixte Denizet 2025-03-06 19:12:26 +01:00
parent 1bc98dfbd9
commit 7280540901
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,