To: "The elegant MVC web framework" <catalyst@lists.scsys.co.uk>
Hi Charlie,


Thanks for that. I've looked at various html 2 pdf tools (I used html2ps for a project about 10 years ago). But lack of even basic CSS support makes the
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)

Thanks.

Octavian


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4923 (20100307) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to