Open GoogleCodeExporter opened 8 years ago
Your missing the Download parameter try this:
myPDF.save( Method.REMOTE, "pdf/create.php",Download.ATTACHMENT, "Moebel.pdf" );
Original comment by yoshi...@gmail.com
on 14 Jul 2009 at 6:37
Could you pls post the create.php file.
I cannot find it in the svn
Original comment by komminen...@gmail.com
on 19 May 2010 at 6:06
<?php
$method = $_GET['method'];
$name = $_GET['name'];
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
// get bytearray
$pdf = $GLOBALS["HTTP_RAW_POST_DATA"];
// add headers for download dialog-box
header('Content-Type: application/pdf');
header('Content-Length: '.strlen($pdf));
header('Content-disposition:'.$method.'; filename="'.$name.'"');
echo $pdf;
} else echo 'An error occured.';
?>
Original comment by ericdecoff
on 22 Jun 2011 at 11:46
Original issue reported on code.google.com by
frederik...@gmail.com
on 28 Mar 2009 at 9:41