Re: [SMARTY] SMARTY and PDF

From: Date: Fri, 26 Apr 2002 03:28:36 +0000
Subject: Re: [SMARTY] SMARTY and PDF
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3893@lists.php.net to get a copy of this message
PDI can be used as a template system for PDFs. I've been dynamically creating PDFs in PHP for years now (first with ClibPDF and now with PDFlib).. So it's entirely possible to wrap smarty functions around the PHP functions for creating PDFs. The example I saw on-list earlier made fine sense with the {set_author} functions and all that. As far as FPDF goes, it looks like that's a wrapper around the PDFlib API, so you'd be making a wrapper around a wrapper (and you could even call PHP's functions a wrapper around the C API), but hey, it's all in good fun :-) -Mitch ----- Original Message ----- From: "Norbert Röcher" <norbert.roecher@t-online.de> To: <smarty-general@lists.php.net> Sent: Thursday, April 25, 2002 8:00 PM Subject: Re: [SMARTY] SMARTY and PDF > > "Bertrand Dunogier" <bdunogier@wanadoo.fr> schrieb im Newsbeitrag > news:114722789.20020425201044@wanadoo.fr... > > oh> WHAT ABOUT: INCLUDING FPDF Class in SMARTY???? > (http://www.fpdf.org/) > > oh> (as a plugin???) > > > > oh> Should it be a good way to output PDF files from Smarty? > > What is the point in integrating this into Smarty ? Do you want to > add > > functions to interpret HTML code and push it into a PDF ? Nonsense... > > You can't write a PDF template, so... it is useless. > > Wouldn't be more nonsense than {popup} (which isn't nonsense). > > Norbert > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#3893) next »