FileParser does not ignore whitespace in hex strings.
General-Purpose PDF Library for Java and .NET
Status: Beta
Brought to you by:
stechio
I have some old PDF files that include hex strings with whitespace (\n). I am pretty sure this is legal PDF though it seems to be very rare. The FileParser class does not ignore this whitespace while building the hex string and as a result later attempts to convert the data to bytes fail.
I fixed it in my own copy of 0.1.1 by changing line 286 of FileParser.cs from
buffer.Append((char)c);
to
if (!IsWhitespace(c)) buffer.Append((char)c);
You were right: fix has been committed in rev 88 [1] and will be part of 0.1.2 release.
thank you!
[1] http://clown.svn.sourceforge.net/viewvc/clown?view=revision&revision=88