Forums

Save two versions of PDF with TCPDF?

MaestroC 19 Aug, 2015
I have a form with a working TCPDF function in it. One question though regarding output settings...

I need two different versions of the PDF saved and downloaded to the user. One version for a coach to see (with extra private fields included) and another for a client (without those private fields). If I put two TCPDF actions into the OnSubmit of the form it runs the first one and downloads correctly but it does not run the second one. Is there a way to make it create, save, and download both versions in succession?
GreyHead 19 Aug, 2015
Hi MaestroC,

You have to save the first PDF to the server. Once the download process runs ChronoForms loses control so any later actions are ignored. You will also need to give them different names - see my post in your other thread, and you may also need to hack the action code to remove the close() action (see the post I linked to in the other thread).

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