Looks like I may have triggered a bug in the parsing of a specific PDF I need to process.
The exception is UglyToad.PdfPig.Core.PdfDocumentFormatException
The message is this.. (there is no "key", it's an empty string)
Expected name as dictionary key, instead got:
Stack trace:
at UglyToad.PdfPig.Tokenization.DictionaryTokenizer.ConvertToDictionary(List``1 tokens)
at UglyToad.PdfPig.Tokenization.DictionaryTokenizer.TryTokenize(Byte currentByte, IInputBytes inputBytes, IToken& token)
at UglyToad.PdfPig.Tokenization.Scanner.CoreTokenScanner.MoveNext()
at UglyToad.PdfPig.Tokenization.DictionaryTokenizer.TryTokenize(Byte currentByte, IInputBytes inputBytes, IToken& token)
at UglyToad.PdfPig.Tokenization.Scanner.CoreTokenScanner.MoveNext()
at UglyToad.PdfPig.PdfFonts.Parser.CMapParser.Parse(IInputBytes inputBytes)
at UglyToad.PdfPig.PdfFonts.Cmap.CMapCache.Parse(IInputBytes bytes)
at UglyToad.PdfPig.PdfFonts.Parser.Handlers.Type0FontHandler.Generate(DictionaryToken dictionary)
at UglyToad.PdfPig.PdfFonts.FontFactory.Get(DictionaryToken dictionary)
at UglyToad.PdfPig.Content.ResourceStore.LoadFontDictionary(DictionaryToken fontDictionary)
at UglyToad.PdfPig.Content.ResourceStore.LoadResourceDictionary(DictionaryToken resourceDictionary)
at UglyToad.PdfPig.Parser.PageFactory.Create(Int32 number, DictionaryToken dictionary, PageTreeMembers pageTreeMembers, Boolean clipPaths)
at UglyToad.PdfPig.Content.Pages.GetPage(Int32 pageNumber, Boolean clipPaths)
at UglyToad.PdfPig.PdfDocument.GetPage(Int32 pageNumber)
at UglyToad.PdfPig.PdfDocument.<GetPages>d__32.MoveNext()
at Program.<<Main>$>d__0.MoveNext()
Any help much appreciated, I can provide the PDF on request.
Looks like I may have triggered a bug in the parsing of a specific PDF I need to process.
The exception is
UglyToad.PdfPig.Core.PdfDocumentFormatException
The message is this.. (there is no "key", it's an empty string)
Expected name as dictionary key, instead got:
Any help much appreciated, I can provide the PDF on request.