What steps will reproduce the problem?
1. myPDF.addImage(stage, 0, 0, 0, 0, ImageFormat.JPG, 100, 1, "ResizePage");\
2. myPDF.save(Method.REMOTE, URL+"create.php", Download.ATTACHMENT, namae +
".pdf", "_top");
3. <?php
$method = $_GET['method'];
$name = $_GET['name'];
$pdf = file_get_contents("php://input");
if(isset($pdf))
{
header('Content-Type: application/pdf');
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
header('Content-Length: '.strlen($pdf));
header('Content-disposition:'.$method.'; filename="'.$name.'"');
echo $pdf;
}
else
{
//
}
?>
What is the expected output? What do you see instead?
I'm trying to output a pdf showing all the contents on the stage. Instead,
about half the time I get an error message:
"There was an error opening the document. The file is damaged and could not
be repaired."
What version of the product are you using? On what operating system?
Adobe Reader 8, Flash CS3, Flash Player 9, newest AlivePDF version
Please provide any additional information below.
I think it has to do with the image encoding. I'll get half generated,
corrupted image when using the JPGEncoder.
Original issue reported on code.google.com by Jeremygr...@gmail.com on 9 Dec 2009 at 8:15
Original issue reported on code.google.com by
Jeremygr...@gmail.com
on 9 Dec 2009 at 8:15