Hello
We face issue that PDF Sharp can’t open the PDF file that provided by our customer. Demo project can be downloaded here
https://galuza-my.sharepoint.com/:u:/g/ ... g?e=UW0hMyWe’re using nuget package PDFsharp.1.50.4845-RC2a via the following code snippet.
Code:
try
{
using (var reader = PdfReader.Open(pdfPath, PdfDocumentOpenMode.ReadOnly))
{
}
}
catch (Exception e)
{
Console.Error.WriteLine(e.ToString());
Console.ReadLine();
}
Expected result:
Code:
no exception happens.
Actual result:
Code:
PdfSharp.Pdf.IO.PdfReaderException: Invalid entry in XRef table, ID=67, Generation=0, Position=0, ID of referenced object=4, Generation of referenced object=0
Could you please take a look into it?