I manage a PDF file whose size is 2.15GB, I opened the file with fopen, I use _fseeki64
and _ftelli64
in order to get or update the pointer position in the file and it works correctly.
I use fread
in order to read from the pdf file. Usually it works properly, but when the read pointer is located near to the end of the file, fread
get the EOF character which is wrong.
So, how can I read correctly from this large PDF file.
NB: I use the same source code with file whose size is less than 2GB and it works correctly.