Posted by Steve on 11/07/07 14:14
<cappieins@t-online.de> wrote in message
news:1194438127.438736.243150@50g2000hsm.googlegroups.com...
> Hi,
>
> i've got a problem using PHP FPDF library to create PDF files send
> inline to
> a browser window.
>
> The created PDF file opens correctly in the browser (IE 6), but if I
> want to save
> it to my local disk, there is not automatically the filename used I
> passed
> to the "Output" function of the lib.
>
> Instead the name of the html page is proposed in the file chooser.
>
> Does anyone have an idea how to get the correct filename automatically
> in teh file chooser dialog?
what fpdf version are you using? whatever the case, just look a the output
function and check what headers it's sending out. check to make sure there
is header line for:
header('content-disposition: attachment; filename="' . $name . '"');
and that $name (or whatever variable name is used for the file name param)
is set...you also need to make sure you are passing 'D' as the $dest
(destination) param.
hth,
me
[Back to original message]
|