|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
malian6 Smarty n00b
Joined: 08 Jan 2015 Posts: 2
|
Posted: Thu Jan 08, 2015 2:59 pm Post subject: Create pdf |
|
|
Hello everybody, I have a smarty application, all the reports that I have in this application are generated dinamically in html format (with tpl template), now I need to convert these reports in pdf format and visualize them like I do now with html format (or better, generate them in pdf format), can you tell if is it possibile? Can you tell me how or show me some examples, please?
Many Thanks.
Max |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Jan 08, 2015 6:54 pm Post subject: |
|
|
Yes, this is possible, although this is not a Smarty question.
PDF is not a simple text format, it is a complete layout rendering. Use libraries like TCPDF or HTML-to-PDF converters with "@media PRINT { … }". |
|
Back to top |
|
malian6 Smarty n00b
Joined: 08 Jan 2015 Posts: 2
|
Posted: Fri Jan 09, 2015 10:52 am Post subject: |
|
|
AnrDaemon wrote: | Yes, this is possible, although this is not a Smarty question.
PDF is not a simple text format, it is a complete layout rendering. Use libraries like TCPDF or HTML-to-PDF converters with "@media PRINT { … }". |
Hello, thanks about your answer, can you explain better what you mean with
@media PRINT { … }
Thanks.
Max |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|