I have an Issue: Downloading PDF created with OpenOffice are always "blank". Here is the code:
$filename = "test.pdf";
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename=\"test.pdf\"");
$file = file($filename);
foreach($file AS $fileshow)
{
print $fileshow;
}
exit();
PDFs fron other sources work like a charm. What am I dowing wrong?