PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
InfiniteLoop in PdfReader.Open() https://forum.pdfsharp.net/viewtopic.php?f=3&t=2855 |
Page 1 of 1 |
Author: | gerdb42 [ Thu Jul 03, 2014 9:52 pm ] | ||
Post subject: | InfiniteLoop in PdfReader.Open() | ||
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
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |