Yes, it works properly when you open it in browser (Chrome and Mozilla). But if you choose to save it and after try to open in PDF Reader – file is corrupted. Also i found that size of file is different before download to site and after download from link, so i think script is adding something to file, but i don’t know where i can fix it.