Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#36 FileParser does not ignore whitespace in hex strings.

closed-fixed
nobody
None
5
2012-12-02
2012-06-05
Anonymous
No

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);

Discussion

    • status: open --> closed-fixed