Skip to content

Invalid ColorSpace token encountered in page resource dictionary: <ColorSpace, /DeviceRGB> #1061

@tronci

Description

@tronci

Hi,
I'm using the latest version of PdfPig on NuGet (0.1.10).

Reading data from a PDF (that I cannot attach due to sensitive data) I get this exception using both GetPages() and GetPage(Int32 pageNumber) methods:

UglyToad.PdfPig.Core.PdfDocumentFormatException HResult=0x80131500 Message=Invalid ColorSpace token encountered in page resource dictionary: <ColorSpace, /DeviceRGB>. Source=UglyToad.PdfPig StackTrace: at UglyToad.PdfPig.Content.ResourceStore.LoadResourceDictionary(DictionaryToken resourceDictionary) at UglyToad.PdfPig.Content.BasePageFactory1.Create(Int32 number, DictionaryToken dictionary, PageTreeMembers pageTreeMembers, NamedDestinations namedDestinations)
at UglyToad.PdfPig.Content.Pages.GetPage[TPage](IPageFactory1 pageFactory, Int32 pageNumber, NamedDestinations namedDestinations, ParsingOptions parsingOptions) at UglyToad.PdfPig.PdfDocument.GetPage(Int32 pageNumber)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions