ArgumentOutOfRangeException on ReflectionGraphicsStateOperationFactory.Create
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List`1.get_Item(Int32 index) at
UglyToad.PdfPig.Graphics.ReflectionGraphicsStateOperationFactory.Create(OperatorToken op, IReadOnlyList`1 operands) at
UglyToad.PdfPig.Parser.PageContentParser.Parse(Int32 pageNumber, IInputBytes inputBytes, ILog log) at
UglyToad.PdfPig.Parser.PageFactory.GetContent(Int32 pageNumber, IReadOnlyList`1 contentBytes, CropBox cropBox, UserSpaceUnit userSpaceUnit, PageRotationDegrees rotation, Boolean clipPaths, MediaBox mediaBox) 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
Triggering code:
using var document = PdfDocument.Open(pdfFile);
var page = document.GetPage(pageNumber);
NuGet package version 0.1.6
I'm afraid I can't share the PDF here but I'd be happy to share it with a developer privately.
Hi @Muppets if you're able to share with the email in this comment please then I can take a look 🙏 https://github.com/UglyToad/PdfPig/issues/334#issuecomment-859037365
@EliotJones I've pinged you that document. Let me know if you don't get it or if you need anything else.
Can you tell me when to release this issue
@tuohaibei this should be included in any of the pre-releases after the 17th June, so this one for example https://www.nuget.org/packages/PdfPig/0.1.7-alpha-20220622-fc71a
OK,thanks