From ba4e7cb69801b4a0121917fe6e6c17a0708c9583 Mon Sep 17 00:00:00 2001 From: Andrei Augustin <36695484+andreiaugustin@users.noreply.github.com> Date: Sun, 5 Mar 2023 20:25:01 +0200 Subject: [PATCH] Fixed lint's unnecessary semicolon error (#1414) * Fixed lint's unnecessary semicolon error * Fixed pdfa1 colour profile test error The directory where the colour profile is stored was changed, but the test was not updated. --- lib/metadata.js | 2 +- lib/mixins/pdfa1.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/metadata.js b/lib/metadata.js index 76e5cc4..0742bd5 100644 --- a/lib/metadata.js +++ b/lib/metadata.js @@ -30,6 +30,6 @@ class PDFMetadata { this._closeTags(); this._metadata = this._metadata.trim(); } -}; +} export default PDFMetadata; \ No newline at end of file diff --git a/lib/mixins/pdfa1.js b/lib/mixins/pdfa1.js index 09cfbc0..613ef0b 100644 --- a/lib/mixins/pdfa1.js +++ b/lib/mixins/pdfa1.js @@ -22,7 +22,7 @@ export default { }, _addColorOutputIntent() { - const iccProfile = fs.readFileSync(__dirname + '/data/sRGB_IEC61966_2_1.icc'); + const iccProfile = fs.readFileSync(__dirname + '/../color_profiles/sRGB_IEC61966_2_1.icc'); const colorProfileRef = this.ref({ Length: iccProfile.length,