Files opens partially. cannot download the entire file

Hello. When using a proxy for the site, I cannot download the entire PDF file, it opens partially. But if you don’t use a proxy, everything works fine.
I am using Magento platform.
What could be the problem?

Thank you all very much!