[Catalyst] Which C::View::PDF should I use?
orasnita at gmail.com
Mon Mar 8 06:41:59 GMT 2010
To: "The elegant MVC web framework" <catalyst at lists.scsys.co.uk>
>> Thanks for that. I've looked at various html 2 pdf tools (I used html2ps
>> a project about 10 years ago). But lack of even basic CSS support makes
>> them useless for creating "pretty" PDFs.
>> In reality, this project doesn't really need PDF output (HTML would work
>> fine), but $customer says it's a requirement, so I've got to make it work
>> for creating "pretty" PDFs.
> I've found that a simple way to put values into a PDF is to use PDF
> forms - position the form fields in the appropriate location in the
> template doc, and to generate the output update the form fields and
> write a 'flattened' version of the doc. This means you can use visual
> tools to layout the doc, and your code doesn't need to know anything
> except the field names.
Do you know if there is a way of creating PDFs in the same way the HTML
templates are created, by just putting a variable name in a certain place
and render that pdf file by replacing that variable with its value? (Without
needing to specify the position where those variables will be placed)
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4923 (20100307) __________
The message was checked by ESET NOD32 Antivirus.
More information about the Catalyst