[Flashcoders] PDF forced to download

2005-11-30 Thread Sebastián Sirvent

Hi,

How can a PDF be forced to download instead of opening in the browser?
It can't be zipped...

Thanks


Sebastián Sirvent
http://www.e-foco.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] PDF forced to download

2005-11-30 Thread Éric Thibault

I used to create PDF from php and used this for the header...

//attachment : promt to save to disk
//inline : open in browser

?php

header( 'Content-type: application/pdf' );
header( 'Content-disposition: attachment; filename='mypdf.pdf' );

?

Éric Thibault
RVE

Sebastián Sirvent wrote:


Hi,

How can a PDF be forced to download instead of opening in the browser?
It can't be zipped...

Thanks


Sebastián Sirvent
http://www.e-foco.com


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders