Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The given key '/a0' was not present in the dictionary. #819

Open
kirk-marple opened this issue Apr 12, 2024 · 0 comments
Open

The given key '/a0' was not present in the dictionary. #819

kirk-marple opened this issue Apr 12, 2024 · 0 comments

Comments

@kirk-marple
Copy link

Found a file from a customer which gave this error.

I can provide the PDF privately, when someone is available to look into this.

System.Collections.Generic.KeyNotFoundException:
   at System.ThrowHelper.ThrowKeyNotFoundException (System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Collections.Generic.Dictionary`2.get_Item (System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at UglyToad.PdfPig.Content.ResourceStore.GetExtendedGraphicsStateDictionary (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Graphics.BaseStreamProcessor`1.SetNamedGraphicsState (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Graphics.Operations.SpecialGraphicsState.SetGraphicsStateParametersFromDictionary.Run (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Graphics.BaseStreamProcessor`1.ProcessOperations (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Graphics.ContentStreamProcessor.Process (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Parser.PageFactory.ProcessPage (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Content.BasePageFactory`1.Create (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.Content.Pages.GetPage (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.PdfDocument.GetPage (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
   at UglyToad.PdfPig.PdfDocument+<GetPages>d__34.MoveNext (UglyToad.PdfPig, Version=0.1.9.0, Culture=neutral, PublicKeyToken=605d367334e74123)
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

No branches or pull requests

1 participant