Forums

tcpdf output

matteo4481 01 Jul, 2016
Hello, i have some problem with tcpdf

This is my configuration:


1. on submit i want to see the thankyou message + download of pdf file
but independently of what I choose in the field view (in my case save + download) i see only the pdf code output like this:
%PDF-1.7 %���� 9 0 obj << /Type /Page /Parent 1 0 R /LastModified (D:20160701153628+00'00') ........
etc.
2. i want to attach the pdf to email and i have copy the the File name in Data/Files array inside the attachment field of the email
this is right?


thanks!
GreyHead 02 Jul, 2016
Hi matteo4481,

The problem with the TCPDF action is that if you use any of the immediate download options then ChronoForms loses control and none of the later actions will be run. The way round this is to save the pdf to the server and then include a download link to the file.

If you don't want to save the pdfs then you can run a cron job every hour or two to delete anything in the folder that's more than say 30 minutes old.

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