Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Save pdf with Special Characters

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Save pdf with Special Characters

Postby Stela » Mon Oct 22, 2012 11:20 pm

Hello...

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)
Attachments
AcrobatMessage.JPG
AcrobatMessage.JPG (22.05 KiB) Viewed 139 times
Stela
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Oct 22, 2012 11:13 pm

Return to PHP coding => General

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron