Ability to generate PDF document from raw template

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Jul 17, 2010, 10:39:42 AM7/17/10
to In-Portal Development
We have nice TCPDF library based class, that allow to convert template (*.tpl files) into PDF documents. It only lacks ability to generate PDF document from directly given html, without saving it as .tpl file before doing so.

Attached patch fixes such inability.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
allow_to_generate_pdf_from_raw_contents.patch

Dmitry Andrejev

unread,
Jul 17, 2010, 3:10:49 PM7/17/10
to in-por...@googlegroups.com
Thanks Alex.

I actually never used this before. What's a good place to look to get familiar with what can be done using all this functionality.


DA.

Alexander Obuhovich

unread,
Jul 17, 2010, 4:18:49 PM7/17/10
to in-por...@googlegroups.com
You should recall object of kPDFHelper class and call BuildFromTemplate method of it to generated pdf file contents based on given template name/contents.

Phil -- wbtc.fr --

unread,
Jul 19, 2010, 4:14:59 AM7/19/10
to in-por...@googlegroups.com
seems interesting to me too, is there any place where we can test a .tpl in action?

2010/7/17 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Jul 19, 2010, 7:12:46 AM7/19/10
to in-por...@googlegroups.com
Nope. This is developers only feature and requires "tcpdf" library to be installed separately. Also it is not used in any of in-portal modules at the moment.

Alexander Obuhovich

unread,
Jul 23, 2010, 8:43:37 AM7/23/10
to in-por...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages