#3 Wrong file mode

v1.0_(example)
closed
nobody
PDF-parser (6)
5
2014-02-10
2010-07-18
No

The following line in main.c:
if((file = fopen(inputfile, "r")) == 0) {
Should be changed to:
if((file = fopen(inputfile, "rb")) == 0) {
The reason is that PDF always uses UNIX line endings, regardless of platform. It has to, otherwise it wouldn't be portable, no?

Discussion

  • Henning Noren

    Henning Noren - 2014-02-10

    Thanks, fixed in 0.13

     
  • Henning Noren

    Henning Noren - 2014-02-10
    • status: open --> closed
    • Group: --> v1.0_(example)
     

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

Sign up for the SourceForge newsletter:





No, thanks