Buy Now
Sign in

TCPDF configuration ChronoForms V6

Elitakey , May 26 at 10:26
E
Elitakey

Hello, since there are changes from CF5 in TCPDF configuration window, the explanation needed in following:
1. How to put the proper name for the PDF file if the file will be stored on server? When adding TCPDF action, Expample contain filename pdf15.pdf . Should I use the same approach? How those files will be stored if they were many? In CF5 you just put the filename and the incremental data and extension .pdf was added automatically.
2. how to write storage path? Example contains {path:front}/pdf/pdf15.pdf should I leave filename field empty, or should I write something?

Trying different approaches or even put the default date in I still get the TCPDF error:
Unable to create output file: ........../components/com_chronoforms6/chronoforms/pdf/pdf15.pdf
(write permissions are allowed for that folder)

3. what would be the right semantics of the attachment files in the email?
4. what about the fonts and latin extended characters? where to adjust this? only way how to look at the pdf generated is by choosing inline option - then its visible that PDF has been generated with courier font that does not contain latin extended characters.

Attachments
form5.jpg
form5.jpg
(56.89 KiB)
280 Downloads/Views
E
Elitakey

Anybody can help with this? How to configure TCPDF in V6?
Thank you in advance!

admin

Hi Elita,

The pdf filename setting is used when viewing the file inline or downloading it, but the file path is used for saving it, you can use the variable shortcodes in both and customize the name to your liking, please check this FAQ:
https://www.chronoengine.com/faqs/74-chronoforms6/5289-variable-shortcodes.html

In order to attach a file to the email, you need to provide the file path using a variable shortcode, so just copy the path you have used in the TCPDF action and use it in the attachments box in the email action, the pdf action should be before the email of course.

I need to check the font issue.

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

Sorry, Max, this did not help :( Even though TCPDF gets the URL, it still cannot create the file :(

TCPDF ERROR: Unable to create output file: http://myDomain/images/PDF

In addition, there are several other considerations I do not have solution for:

1. how to write the filename so that every created PDF had saved in server in form Filename_increment.pdf?
2. What should I write in email attachment field - only the path where all the PDFs are located or path with the filename?
3. What about the fonts? Did you happen to look for the possibility to add at least dejavusans with latin-extended charset?

admin

Hi Elita,

The file path should be a server path, you have a web path here and that will not work.

#1- You can do that if you are saving the data into database, you could use the incremented id obtained, or try this file path: {path:front}/pdf/{date:d-m-y-h-i-s}.pdf

#2- After the tcpdf runs you can try this: {var:tcpdf_name.path} in the email attachments box.

#3- Unfortunately not yet, but its on my todo list, please send me a message using the contact us page for this issue and I will reply with a patch file ONCE its finished.

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!