Forums

Wrong pdf with TCPDF and ChronoForm for Wordpress

thomas973 02 Oct, 2015
Hi,
I use ChronoForms V5 for Wordpress and action TCPDF.
PDF that is generated is poorly formatted. TCPDF adds all the HTML code of my page before  PDF code in the PDF file.

Can you tell me where does the problem?
[attachment=0]ss_20151002025407.pdf[/attachment]
Max_admin 06 Oct, 2015
Hi Thomas,

It looks like WP sends browser info before the PDF generation starts, the solution is to change the link of the PDF and append this string to the end of it:
&tvout=ajax


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thomas973 12 Oct, 2015
thanks for your answer
I do not see how to change this link. Can you tell me more?
thomas973 13 Oct, 2015
I tried to enable AJAX for sending the form. This is what I would use to not reload the page.
In this case the PDF code is displayed on my page instead of displaying the window to download.
Max_admin 16 Oct, 2015
Don't enable the AJAX mode in the form.

What's the link to your form on your website ? try to use it in the HTML action > Submit url setting and append the following string:

&event=submit&tvout=ajax
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.