Create a pdf document with the field of my form to attach it in a mail

marmouz 29 Jul, 2017
I am sorry I am french and I have a little difficulty understanding the tutorials that shows how to create a PDF containing information from my form or my database and then attach this pdf to an email sent to the person who Has completed the form.
I use CF5 to create membership to my association and I want to send them at the end of this registration a membership card in pdf to print.

Thank you in advance.

Pierre
GreyHead 30 Jul, 2017
Hi Pierre,

Where exactly is the problem you are having?

Have you used the TCPDF action to create a PDF? Or are you still needing to do that?

Bob
marmouz 31 Jul, 2017
hj Bob,

I have downloaded tcpdf in joomla but I do not know how to use it to create a pdf with the data of my form. Should I use a "custom code" in php?
And what is syntax?

Pierre
GreyHead 31 Jul, 2017
Hi Pierre,

The TCPDF action is like the Email action - it takes HTML and you can add {input_name} to show the values of form data.

A good place to start is to copy the contents of an Email action template into the TCPDF action.

Bob
marmouz 01 Aug, 2017
Hi Bob,
I'm sorry but i dn't find where download tcpdf action
Please bring me the URL

Pierre
GreyHead 01 Aug, 2017
Hi Pierre,

Go to the Products menu above > ChronoForms > ChronoForms v5 > Downloads > TCPDF

Bob
marmouz 01 Aug, 2017
thank you a lot, Bob
i go to try the new action.

Pierre
marmouz 01 Aug, 2017
Hi Bob,
i have created a pdf and i save it on my server.
this is the message in debugger :
Array
(
[cf_pdf_file] => Array
(
[name] => Essai_Pierre_20170801235910.pdf
[path] => ../Essai_Pierre_20170801235910.pdf
[size] => 0
[link] => ../Essai_Pierre_20170801235910.pdf
)

)
what is the syntax to write in the mail attachement for join the pdf to a mail.

Pierre
marmouz 02 Aug, 2017
Hi Bob,
this morning, i have found the answer for my question. about join pdf in mail.
it's easely when i work.
I will now try to create a pdf with a beautiful presentation with images. I hope to do it alone but your advice will be welcome

Pierre
GreyHead 02 Aug, 2017
Hi Pierre,

The ChronoForms TCPDF action has limited functionality. It's fine for producing basic records from form data but may not be able to produce 'beautiful' layout :-(

The TCPDF library is capable of doing this and has been installed with the action. if the action isn't good enough you can use Custom PHP + the TCPDF library to produce much better results.

Bob
marmouz 02 Aug, 2017
Hi Bob
Thanks for yours advices.
where i find many exemples of use TCPDF library in a custom code PHP.

Pierre
healyhatman 09 Aug, 2017
Stack Overflow. If you have limited coding experience you're out of luck though it's not easy.
GreyHead 10 Aug, 2017
Hi marmouz,

What exactly do you need in your pdf?

Bob
This topic is locked and no more replies can be posted.