Skip to content

Commit

Permalink
Fix browserify transform sRGB_IEC61966_2_1.icc file
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Aug 20, 2024
1 parent f2e9b16 commit 831179e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/mixins/pdfa.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 831179e

Please sign in to comment.