PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

Getting exception: Input string was not in a correct format
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2194
Page 1 of 1

Author:  Junk [ Mon Oct 29, 2012 6:58 pm ]
Post subject:  Getting exception: Input string was not in a correct format

When I try to open one particular PDF file (Link to that file) I get:
System.FormatException: Input string was not in a correct format.

It's a very rare problem.
I tried a lot different PDFs from different sources, but only two PDFs could not be open because of this problem.

Maybe somebody knows what's wrong with this file?

Author:  Thomas Hoevel [ Tue Oct 30, 2012 11:29 am ]
Post subject:  Re: Getting exception: Input string was not in a correct for

That file failed the Acrobat test: I opened it with Acrobat, then closed it - and Acrobat prompted to save changes.
So Acrobat found and corrected problems with the file.

The saved file can be opened with PDFsharp (size was reduced by more than 50 %).

Author:  Thomas Hoevel [ Tue Oct 30, 2012 12:35 pm ]
Post subject:  Re: Getting exception: Input string was not in a correct for

The file is corrupted. It's not a bug in PDFsharp.
Adobe Reader ignores the corrupted data and displays the file, PDFsharp cannot (yet) do this.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/