PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Sep 01, 2024 3:23 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 29, 2024 3:17 am 
Offline

Joined: Fri Aug 09, 2024 5:06 am
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 30, 2024 1:49 pm 
Offline

Joined: Fri Aug 09, 2024 5:06 am
Posts: 4
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


Top
 Profile  
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 117 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group