Download PDF max size 512KB

Has anyone run into an issue with download of max file size 512KB. The documents being downloaded are PDF. The actual pdf file sizes are 1093KB and 779KN but only 512KB is downloaded.

I tried adding before the download and i changed the parameters in the php.ini file.

Thanks for any assistance!