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

Header Checksum illegal on valid pdf
https://forum.pdfsharp.net/viewtopic.php?f=3&t=3276
Page 1 of 1

Author:  MJLaukala [ Wed Jan 20, 2016 8:34 pm ]
Post subject:  Header Checksum illegal on valid pdf

I keep getting exceptions on certain pdfs that I am trying to open with PDFSharp. The file does open in adobe and closes without prompting for a resave so it seems to be a valid pdf. Attached is an IssueSubmission project that reproduces this exception.

Attachments:
IssueSubmission.zip [17.27 KiB]
Downloaded 108 times

Author:  Thomas Hoevel [ Thu Jan 21, 2016 2:42 pm ]
Post subject:  Re: Header Checksum illegal on valid pdf

Thanks for your submission.
MJLaukala wrote:
The file does open in adobe and closes without prompting for a resave so it seems to be a valid pdf.
The header checksum is not valid according to RFC 1950.
I don't know how Adobe Reader decompresses this block (object 4 0 in your file). Maybe it does not decompress it and ignores it instead.

I don't see a simple fix for this issue.
Maybe the CompatiblePdfReader workaround will help in this case:
viewtopic.php?p=5855#p5855

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