You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BruteForceSearcher allows rebuilding the object offsets table, but once it finds an object declaration, it will not consider new object declaration if not finding endobj beforehand.
Some files are lacking these endobj token on some or all of their object declarations.
It can lead to such an exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at UglyToad.PdfPig.PdfExtensions.TryGet[T](DictionaryToken dictionary, NameToken name, IPdfTokenScanner tokenScanner, T& token)
at UglyToad.PdfPig.Content.PagesFactory.CheckIfIsPage(DictionaryToken nodeDictionary, IndirectReference parentReference, Boolean isRoot, IPdfTokenScanner pdfTokenScanner, Boolean isLenientParsing)
at UglyToad.PdfPig.Content.PagesFactory.ProcessPagesNode(IndirectReference referenceInput, DictionaryToken nodeDictionaryInput, IndirectReference parentReferenceInput, Boolean isRoot, IPdfTokenScanner pdfTokenScanner, Boolean isLenientParsing, PageCounter pageNumber)
at UglyToad.PdfPig.Content.PagesFactory.Create(IndirectReference pagesReference, DictionaryToken pagesDictionary, IPdfTokenScanner scanner, IPageFactory`1 pageFactory, ILog log, Boolean isLenientParsing)
at UglyToad.PdfPig.Parser.CatalogFactory.Create(IndirectReference rootReference, DictionaryToken dictionary, IPdfTokenScanner scanner, PageFactory pageFactory, ILog log, Boolean isLenientParsing)
at UglyToad.PdfPig.Parser.PdfDocumentFactory.OpenDocument(IInputBytes inputBytes, ISeekableTokenScanner scanner, ParsingOptions parsingOptions)
at UglyToad.PdfPig.Parser.PdfDocumentFactory.Open(IInputBytes inputBytes, ParsingOptions options)
at UglyToad.PdfPig.Parser.PdfDocumentFactory.Open(Stream stream, ParsingOptions options)
at UglyToad.PdfPig.PdfDocument.Open(Stream stream, ParsingOptions options)
The text was updated successfully, but these errors were encountered:
The
BruteForceSearcher
allows rebuilding the object offsets table, but once it finds an object declaration, it will not consider new object declaration if not finding endobj beforehand.Some files are lacking these endobj token on some or all of their object declarations.
It can lead to such an exception:
The text was updated successfully, but these errors were encountered: