I have this pdf file:
SA Pias - AsPias Rosé.pdf
To open it I use this on the html page:
- Code: Select all
href="AsPiasRose.php?strName=Branco
The AsPiasRose.php is like this:
- Code: Select all
<?php
$filename = "SA Pias - AsPias Rosé.pdf";
$filepath = "http//www.sapias-vinhos.com/Working/Vinhos/" . $filename;
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
//setting content type of page
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename=\"" . $filename."\"");
header("Content-Description: File Transfer");
?>
Everything runs fine, until I open the file that was downloaded and then Acrobat opens and displays this message (in attachment)

