empira / PDFsharp-1.5

A .NET library for processing PDF
MIT License
1.28k stars 589 forks source link

Assertion failure in PDFsharp: "Should not come here" #152

Open equin0x80 opened 2 years ago

equin0x80 commented 2 years ago

The attached simple C# code should create a copy of the attached PDF file, copying the pages one at a time into a new PDF. Instead, it produces an assertion failure ("Should not come here") in PdfCrossReferenceTable.TransitiveClosureImplementation, as shown in the screenshot.

The equivalent code works fine with every other PDF file I have tried.

code.cs.txt 2304.pdf scrshot