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:
parent
1bc98dfbd9
commit
7280540901
14 changed files with 224 additions and 274 deletions
18
gulpfile.mjs
18
gulpfile.mjs
|
@ -636,6 +636,13 @@ function createCMapBundle() {
|
|||
});
|
||||
}
|
||||
|
||||
function createICCBundle() {
|
||||
return gulp.src(["external/iccs/*.icc", "external/iccs/LICENSE"], {
|
||||
base: "external/iccs",
|
||||
encoding: false,
|
||||
});
|
||||
}
|
||||
|
||||
function createStandardFontBundle() {
|
||||
return gulp.src(
|
||||
[
|
||||
|
@ -1091,6 +1098,7 @@ function buildGeneric(defines, dir) {
|
|||
})
|
||||
.pipe(gulp.dest(dir + "web")),
|
||||
createCMapBundle().pipe(gulp.dest(dir + "web/cmaps")),
|
||||
createICCBundle().pipe(gulp.dest(dir + "web/iccs")),
|
||||
createStandardFontBundle().pipe(gulp.dest(dir + "web/standard_fonts")),
|
||||
createWasmBundle().pipe(gulp.dest(dir + "web/wasm")),
|
||||
|
||||
|
@ -1420,6 +1428,7 @@ gulp.task(
|
|||
createCMapBundle().pipe(
|
||||
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web/cmaps")
|
||||
),
|
||||
createICCBundle().pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web/iccs")),
|
||||
createStandardFontBundle().pipe(
|
||||
gulp.dest(MOZCENTRAL_CONTENT_DIR + "web/standard_fonts")
|
||||
),
|
||||
|
@ -1525,6 +1534,9 @@ gulp.task(
|
|||
createCMapBundle().pipe(
|
||||
gulp.dest(CHROME_BUILD_CONTENT_DIR + "web/cmaps")
|
||||
),
|
||||
createICCBundle().pipe(
|
||||
gulp.dest(CHROME_BUILD_CONTENT_DIR + "web/iccs")
|
||||
),
|
||||
createStandardFontBundle().pipe(
|
||||
gulp.dest(CHROME_BUILD_CONTENT_DIR + "web/standard_fonts")
|
||||
),
|
||||
|
@ -2364,6 +2376,12 @@ gulp.task(
|
|||
encoding: false,
|
||||
})
|
||||
.pipe(gulp.dest(DIST_DIR)),
|
||||
gulp
|
||||
.src(GENERIC_DIR + "web/iccs/**/*", {
|
||||
base: GENERIC_DIR + "web",
|
||||
encoding: false,
|
||||
})
|
||||
.pipe(gulp.dest(DIST_DIR)),
|
||||
gulp
|
||||
.src(GENERIC_DIR + "web/standard_fonts/**/*", {
|
||||
base: GENERIC_DIR + "web",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue