Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 Wrong file mode

v1.0_(example)
closed
nobody
PDF-parser (6)
5
2014-02-10
2010-07-18
Shinobu Maehara
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)