Skip to content

pdf-color-space: accept single-name color space arrays#161

Merged
Velli20 merged 1 commit into
mainfrom
single-name-cs
May 22, 2026
Merged

pdf-color-space: accept single-name color space arrays#161
Velli20 merged 1 commit into
mainfrom
single-name-cs

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented May 22, 2026

Treat one-element color space arrays as their named equivalents so shading dictionaries like [/DeviceGray] parse through the shared color-space reader instead of failing as unsupported array forms.

Add parser regression coverage for the accepted single-name arrays and keep empty or malformed multi-element arrays rejected.

Add a document-level shading regression in pdf-document that loads a sampled function shading using /ColorSpace [/DeviceGray].

Treat one-element color space arrays as their named equivalents
so shading dictionaries like [/DeviceGray] parse through the
shared color-space reader instead of failing as unsupported
array forms.

Add parser regression coverage for the accepted single-name
arrays and keep empty or malformed multi-element arrays
rejected.

Add a document-level shading regression in pdf-document that
loads a sampled function shading using /ColorSpace
[/DeviceGray].

Co-authored-by: Codex <codex@openai.com>
@Velli20 Velli20 merged commit 030897d into main May 22, 2026
2 of 3 checks passed
@Velli20 Velli20 deleted the single-name-cs branch May 22, 2026 19:27
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.

2 participants