From 831179e0674076a7b7775991620f26065967b250 Mon Sep 17 00:00:00 2001 From: "Libor M." Date: Tue, 20 Aug 2024 18:25:49 +0200 Subject: [PATCH] Fix browserify transform sRGB_IEC61966_2_1.icc file --- CHANGELOG.md | 2 ++ lib/mixins/pdfa.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 555817ab..535db5b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ### Unreleased +- Fix browserify transform sRGB_IEC61966_2_1.icc file + ### [v0.15.0] - 2024-03-23 - Add subset for PDF/UA diff --git a/lib/mixins/pdfa.js b/lib/mixins/pdfa.js index f06dfc4a..703560e4 100644 --- a/lib/mixins/pdfa.js +++ b/lib/mixins/pdfa.js @@ -16,11 +16,11 @@ export default { endSubset() { this._addPdfaMetadata(); - this._addColorOutputIntent(`${__dirname}/data/sRGB_IEC61966_2_1.icc`); + this._addColorOutputIntent(); }, - _addColorOutputIntent(pICCPath) { - const iccProfile = fs.readFileSync(pICCPath); + _addColorOutputIntent() { + const iccProfile = fs.readFileSync(`${__dirname}/data/sRGB_IEC61966_2_1.icc`); const colorProfileRef = this.ref({ Length: iccProfile.length,