Merge pull request #318 from kasperdaff/indexed-color-space-table-in-string-token

The palette of an indexed color space can be stored in a StringToken
This commit is contained in:
Eliot Jones 2021-04-29 06:55:36 -04:00 committed by GitHub
commit c2f2916c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,10 @@
{
tableBytes = tableStreamToken.Decode(filterProvider, scanner);
}
else if (DirectObjectFinder.TryGet(fourth, scanner, out StringToken stringToken))
{
tableBytes = stringToken.GetBytes();
}
else
{
return UnsupportedColorSpaceDetails.Instance;