Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Creating download pdf file
freebeart

Replies: 4
Views: 49883

PostForum: Tips and Tricks   Posted: Fri Oct 12, 2012 5:07 pm   Subject: Creating download pdf file
google php download files, see appropriate headers. this isn't something smarty needs to address too, btw.

Ok. thank you
  Topic: Creating download pdf file
freebeart

Replies: 4
Views: 49883

PostForum: Tips and Tricks   Posted: Fri Oct 12, 2012 4:28 pm   Subject: Creating download pdf file
Don't you need to send the file as well as headers?

header('Content-disposition: attachment; filename="documents/tac.pdf"');
header('Content-type: "application/ ...
  Topic: Creating download pdf file
freebeart

Replies: 4
Views: 49883

PostForum: Tips and Tricks   Posted: Thu Oct 11, 2012 8:59 pm   Subject: Creating download pdf file
Hello,
Please help,

I want to be able open or download file of my Smarty output.
I want to be able to have that download/open directly to the user's computer as a .pdf file.

Any ideas?

This ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP