PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Invalid predictor in array
https://forum.pdfsharp.net/viewtopic.php?f=3&t=4341
Page 1 of 1

Author:  Klask [ Wed May 11, 2022 5:56 pm ]
Post subject:  Invalid predictor in array

PdfSharp is not able to flate decode.
Predictor 12 - and throws "Invalid predictor in array"
i have added a link to the pdf file so you can reproduce it.

https://drive.google.com/file/d/1JRxU4P ... sp=sharing

Author:  TH-Soft [ Thu May 12, 2022 8:50 am ]
Post subject:  Re: Invalid predictor in array

Klask wrote:
PdfSharp is not able to flate decode.
Right, PDFsharp can't do that.
PDFsharp relies on external libraries to do the flate decoding.
Fixing it may not be that simple.

Author:  Klask [ Sun May 22, 2022 2:42 pm ]
Post subject:  Re: Invalid predictor in array

Can you guide me in the correct direction? i really need to fix this

Author:  TH-Soft [ Sun May 22, 2022 3:33 pm ]
Post subject:  Re: Invalid predictor in array

Ensure the issue is fixed with the latest version of SharpZipLib. Fix it if not.
Integrate the latest version of SharpZipLib with PDFsharp.

Author:  Klask [ Tue May 24, 2022 5:55 am ]
Post subject:  Re: Invalid predictor in array

Thanks Thomas,

It looks like there is an updated version of the SharpZipLib compared to what is used in PDFsharp (1.50.5147)
I will try to see if i can get it working.

Author:  hinzinho [ Fri Jun 10, 2022 7:05 pm ]
Post subject:  Re: Invalid predictor in array

I am having the same issue with certain pdfs. Did you have any luck finding a fix for this?

Author:  Klask [ Mon Jul 04, 2022 8:50 am ]
Post subject:  Re: Invalid predictor in array

hinzinho wrote:
I am having the same issue with certain pdfs. Did you have any luck finding a fix for this?


Yeah, actually did a bug report on the pdfSharpCore repositorie
https://github.com/ststeiger/PdfSharpCore

And it got fixed, so i changed to pdfsharpcore.

fixed in this issue:
https://github.com/ststeiger/PdfSharpCore/pull/234

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/