AlivePDF download and save to server
Today I found myself needing to implement AlivePDF into a project that needs to generate a PDF, save it on the server and download it to the user’s computer.
Since I didn’t find any information about how to do this (and I found some other people trying to find out how it’s done) I thought I should give it a try. I posted the final result below if someone else needs to know how to both save the PDF file on the server and download it to the user’s computer.
ActionScript 3 AlivePDF code:
_pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
PHP code that will save the file on the server (inside a specified folder) and save it to the user’s computer too:
Hi,
This is an awesome blog! I have been looking for this solution for hours. Can you tell me where I put the php code and in which format I save it?
Thank you! Ionara.
This script works well. Thank you so much!