#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

  • Stefano Chizzolini

    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks