Skip to content

fix: escaping PDF Object Names (space in spot color name fix)#1716

Merged
blikblum merged 3 commits into
foliojs:masterfrom
tr1stan:fix/escape-spaces-in-spot-colors
Jun 7, 2026
Merged

fix: escaping PDF Object Names (space in spot color name fix)#1716
blikblum merged 3 commits into
foliojs:masterfrom
tr1stan:fix/escape-spaces-in-spot-colors

Conversation

@tr1stan

@tr1stan tr1stan commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Bug fix, making sure we're not sending un-escaped chars to the PDF object name.
Fixes: #1644

Checklist:

  • Unit Tests
  • Documentation N/A
  • Update CHANGELOG.md
  • Ready to be merged

Having traced where the .convert( method is being used, this is the easiest way to get the fix in, happy to look at alternatives if we feel it's too broad.

@blikblum

Copy link
Copy Markdown
Member

Thanks. I will take a look. We should escape the minimal places so the chance to regression is smaller

@negis6890-rgb

Copy link
Copy Markdown

gh pr checkout 1716

@blikblum blikblum merged commit 169a8fa into foliojs:master Jun 7, 2026
3 checks passed
@blikblum

blikblum commented Jun 7, 2026

Copy link
Copy Markdown
Member

I modified to escape only where strictly necessary.

Also optimized a bit the escape functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spot colors with spaces does not work

3 participants