PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 4:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Mar 29, 2012 6:33 pm 
Offline

Joined: Thu Mar 29, 2012 6:17 pm
Posts: 2
I use the latest version 1.32.2608.0 of PdfSharp-WPF.dll.
I have the same problem as described here: http://stackoverflow.com/questions/6602 ... ed-to-take.
It hangs at the call of PdfReader.Open(path). I have attached a file where this happens.


Attachments:
o-neuro-untersuchung.rar [103.38 KiB]
Downloaded 627 times
Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 04, 2012 12:55 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
The file "o-neuro-untersuchung.decrypted.pdf" is not decrypted, it's corrupted (I guess some parts were decrypted while some remained unchanged (i.e. encrypted)). PDFsharp hangs while reading the keywords of the document.
Adobe Reader opens the file, but cannot show keywords either.

PDFsharp can open "o-neuro-untersuchung.pdf" - and Adobe Reader can show the keywords for this file.

PdfReader.Open(...) should not hang.
I will ask my boss what we can do about this problem.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 05, 2012 9:09 pm 
Offline

Joined: Thu Mar 29, 2012 6:17 pm
Posts: 2
Thank you.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 16, 2013 4:25 pm 
Offline

Joined: Wed Jan 16, 2013 3:41 pm
Posts: 2
Hi,

I have the same issue with the attached file when calling "PdfReader.Open(fileName, PdfDocumentOpenMode.ReadOnly)" to extract the keywords. Was there any solution found for this issue? If the reader is unable open the file for some reason, it would be great if it threw an exception instead of hanging.

I also use the version 1.32.2608.0 of PdfSharp-WPF.dll.

Thanks,


Attachments:
04-22-2010_TEST.zip [132.75 KiB]
Downloaded 584 times
Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 24, 2013 9:47 pm 
Offline

Joined: Wed Jan 16, 2013 3:41 pm
Posts: 2
Another way to reproduce the issue is to simply create a text file (.txt) and change its extension to .pdf. It is obviously not a valid PDF file, but it would be great if PdfSharp threw an exception instead of hanging forever.
Thanks!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 56 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