PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Jul 03, 2014 9:52 pm 
Offline

Joined: Thu Jul 03, 2014 9:19 pm
Posts: 2
Hi all,

we had Problems opening certain Pdfs causing PdfReader.Open() to enter an infinite Loop. Readers show this Documents as empty.
We found out that these Pdfs were created by a faulty library which inserted a Thousands-Separator in the Parameters of /MediaBox (the Pages need to be fairly large to show this behavior (>A4)). I have attached a Document which I prepared to show this faulty Parameters.
Debug-Builds already show an Assertion in this Situation complaining about an unexpected Symbol. Wouldn't it make sense to throw an Exception if a malformed Pdf is detected?

Gerd


Attachments:
File comment: Pdf with malformed /MediaBox
WrongMediaBox.zip [14.87 KiB]
Downloaded 527 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

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