/ Published in: PHP

This PHP code is made to help people using the ActionScript 3 AlivePDF library to save PDF files from a Flash app to a server.
ActionScript 3 AlivePDF save code:
_pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
ActionScript 3 AlivePDF save code:
_pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php //This project is done by vamapaull: http://vamapaull.com $pdf = $GLOBALS["HTTP_RAW_POST_DATA"]; $name = $_GET["name"]; $save_to = "pdf/". $name; // add headers for download dialog-box echo $pdf; } else{ echo "Encoded PDF information not received."; } ?>
URL: http://blog.vamapaull.com/alivepdf-download-and-save-to-server/
Comments
