1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58: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

@ -30,6 +30,7 @@ const { GenericL10n, parseQueryString, SimpleLinkService } = pdfjsViewer;
const WAITING_TIME = 100; // ms
const CMAP_URL = "/build/generic/web/cmaps/";
const ICC_URL = "/build/generic/web/iccs/";
const STANDARD_FONT_DATA_URL = "/build/generic/web/standard_fonts/";
const WASM_URL = "/build/generic/web/wasm/";
const IMAGE_RESOURCES_PATH = "/web/images/";
@ -637,6 +638,7 @@ class Driver {
url: new URL(task.file, window.location),
password: task.password,
cMapUrl: CMAP_URL,
iccUrl: ICC_URL,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
wasmUrl: WASM_URL,
disableAutoFetch: !task.enableAutoFetch,