PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jan 20, 2018 8:55 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jan 18, 2018 8:10 am 

Joined: Wed Oct 19, 2016 9:14 am
Posts: 5
Location: Australia
error throws on PDFSharp.Open; occurs on both beta4 and beta5
System.ArgumentException: Invalid predictor in array
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

                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.

File comment: part2
QA_16251-01599-002.zip [61.97 KiB]
Downloaded 2 times
File comment: zip file spilt. using 7zip
QA_16251-01599-001.zip [200 KiB]
Downloaded 3 times


Reply with quote  
PostPosted: Thu Jan 18, 2018 9:30 am 
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2750
Location: Cologne, Germany
I cannot tell whether the file is corrupt or the implementation of PDFsharp is incomplete.
But Adobe Reader shows that there is a problem with a signature:
forum_18-01-18_signature-problem.png [ 4.38 KiB | Viewed 7 times ]

Not my area of expertise. I'll let you know when I get feedback from the experts.

Thomas Hoevel
PDFsharp Team

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group