error throws on PDFSharp.Open; occurs on both beta4 and beta5
System.ArgumentException: Invalid predictor in array
Quote:
at PdfSharp.Pdf.IO.Parser.DecodeCrossReferenceStream(Byte[] bytes, Int32 columns, Int32 predictor)
at PdfSharp.Pdf.IO.Parser.ReadXRefStream(PdfCrossReferenceTable xrefTable)
at PdfSharp.Pdf.IO.Parser.ReadXRefTableAndTrailer(PdfCrossReferenceTable xrefTable)
at PdfSharp.Pdf.IO.Parser.ReadTrailer()
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
at PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
at PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)
at DocMan.DocQA.CheckSignatureData(String pathtoQAForm, Int32 QAId, String ProjId) in C:\Users\gray\Dropbox\devel\idev\BW_Forms\branches\n3\App_Code\CS\QA\DocQA.cs:line 160
Code:
try
{
PdfDocument pdfQA = PdfReader.Open(pathtoQAForm,PdfDocumentOpenMode.ReadOnly);
Same code works fine on 30+ other almost identical PDFs. In the error case, the file is signed (3 fields) using both Bluebeam & Acrobat, which is unusual for us. (Generally just Bluebeam and all works fine.)
File displays correctly using Bluebeam, Edge, Win10 Reader, Chrome, PDF ExchangeEditor. Form fields (other then signatures) were filled out using PdfSharp library. (had to split to get under 250k)
Not critical as I can update database manually upon the error report.