Re: [SMARTY] SMARTY and PDF

From: Date: Fri, 26 Apr 2002 01:50:02 +0000
Subject: Re: [SMARTY] SMARTY and PDF
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3890@lists.php.net to get a copy of this message
On 25/04/02 20:10, "Bertrand DUNOGIER" <bdunogier@wanadoo.fr> wrote: > 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. I just thought it would be cool to keep the php script which assign variables to smarty.... and after, to have the possibility to choose between a classic template that will generate HTML and a new kind of template that will generate PDF (and which do not contains a line of HTML).... A template containing things like that: {pdf_init} {settitle title=$TITLE} {setauthor author=$AUTHOR} {imageprint src=$SRC x=10 y=20 w=$WIDTH h=$HEIGHT type=jpg} {cellprint w=$CELL_WIDTH h=$CELL_HEIGHT text=$TEXT border=0 align=center} {pdf_print} I KNOW!!!!!!!!! It's not a template because it only contains calls to smarty custom functions but it will allow us to keep exactly the same variable assignation php script.... I do not know if it's useless but I'm just thinking of a way to print some pages of my web site (outputting PDF files) without changing my php script which assign variables to smarty. SO, advices??? Suggestions???

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