PdfPig icon indicating copy to clipboard operation
PdfPig copied to clipboard

ArgumentOutOfRangeException on ReflectionGraphicsStateOperationFactory.Create

Open Muppets opened this issue 3 years ago • 5 comments

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.

Muppets avatar May 12 '22 10:05 Muppets

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 avatar May 29 '22 20:05 EliotJones

@EliotJones I've pinged you that document. Let me know if you don't get it or if you need anything else.

Muppets avatar Jun 06 '22 08:06 Muppets

Can you tell me when to release this issue

tuohaibei avatar Jun 29 '22 08:06 tuohaibei

@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

EliotJones avatar Jun 29 '22 18:06 EliotJones

OK,thanks

tuohaibei avatar Jun 30 '22 01:06 tuohaibei