PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Error opening stamped file https://forum.pdfsharp.net/viewtopic.php?f=2&t=4664 |
Page 1 of 1 |
Author: | hsikkandar [ Thu Aug 29, 2024 3:17 am ] |
Post subject: | Error opening stamped file |
When i try to open the stamped pdf file(not digitally signed) i am getting error like "Failed to open the PDF file: Cannot retrieve stream length. PDFsharp cannot read this PDF file. If you think your file is a valid PDF file please send it to us so that we can fix this bug in the PDF parser.", is this expected behaviour and where to fix it in pdfparser source code. Any hint to proceed further would be great help.pdfsharp version 6.2 preview I am using. The same observed previous version as well update: when i see the content stream , i could see "Sig/Filter/Adobe.PPKLite/SubFilter/adbe.pkcs7.detached", which means signed right? but we were told its not signed , rather "dummy stamped". How to handle this adbe.pkcs7.detached.? or How to skip that particular stream by lexer. Thanks Hyder |
Author: | hsikkandar [ Fri Aug 30, 2024 1:49 pm ] |
Post subject: | Re: Error opening stamped file |
have fixed the issue for this particualar issue. The issue is due to *endstream* is not properly available based on the Dictionary length. It had some extra bytes. Adjusted the dictionary length and its started working. Thanks |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |