Forums

TCPDF blank page

EldARon 28 May, 2012
I got a action from Max for creating PDFs.

It creates the PDFs like a charm. I want it to save a pdf to server and then show the normal Thank you message, but all actions after the creation of PDFs doesn't run.

I get a blank page. I have looked through the code. Added a echo "Hello world" to the end of the code an it prints fine. It seems like ChronoForm doesn't register that action is finished.

Here's a test form without saving to server:Without saving PDF
Here's the same form but with save to PDF: Test saveing a PDF

Any suggestions?

EDIT:
It doesn't matter where in the OnSubmit event I place the HTML to PDF action. It will generate a blank page. But actions that are after will not be run.
If I put it as the first action. All actions after will not run. Eg. mail, db submit and thank you message. If I but it last. Then all actions are run, but it still produces a blank page. The only exception is the thank you message. That's not shown.
GreyHead 29 May, 2012
Hi EldARon,

I don't think I have a copy of this action so I don't know how it works :-(

Bob
GreyHead 29 May, 2012
Hi EldARon,

Thanks for the action, I've had a quick look at the code and I think I can see what is happening. The file output is handles by the TCPDF library so effectively ChronoForms passes over control to TCPDF and can't get it back to do anything else . . . and the lst two lines of the action effectively close ChronoForms down. This means that, as written, the action can only be the last action in the event.

I think - not tested at all - that it could be re-coded so that control was returned to ChronoForms provided that the PDF was written to a file on the server (it probably isn't possible if the pdf is output directly or offered for immediate download).

Bob
EldARon 30 May, 2012
Thanks, for the quick reply Bob.

Well, I'm no coder and if I'm to use this my customer must endure the blank page or I'll have to create the pdf manually afterwords. I want to use this action to just save a PDF of the form and show an thank you message.

Maybe the simplest way to run this form with this action is to have it an popup/modal window and just add a echo "You can now close this window" to the end of the TCPDF script.
Max_admin 31 May, 2012
Hi Eldar,

Did you contact me through the "Contact Us" page before ? I have sent to you yesterday confirming that there was a small bug and it has been fixed, I have also sent the new action's installer.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
EldARon 31 May, 2012
Yes, I did contact you through contact us and I got your new version on mail.
Just wanted to see if anyone else experienced the same error.

Just installed it, and it seems to work now. But I wanted to set up the PDF the way I want it to look like before reporting back. I've planed to to this tonight.

Thanks for the update!
I'll be buying a licence for ChronoForms as soon as my company is up and running!
You offer great support!
Max_admin 31 May, 2012
No problems, I have fixed the blank screen issue only anyway, everything else should be working fine AFAIK🙂

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
sarac 18 Jun, 2012
Hi EldARon,

I don't think I have a copy of this action so I don't know how it works :-(

Bob
EldARon 19 Jun, 2012
Hi, sarac

Max fixed the blank screen issues. I just have create and format the html the way I want to. It isn't easy...

Max: Is there a way to include a CSS file? From what I see in the code of TCPDF it says load CSS here something. And second: Is there a way to exclude the header, and horizontal line at the to. I tried to empty the fields in the settings but there seems to be a default if empty.
Max_admin 22 Jul, 2012
Hi EldARon,

I didn't check this forums section for while, I have just tested the action and I can remove the header text and it will stay empty, so no problems with that.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ttomljen 27 Mar, 2013
hi,

first off; your tool is really great! Thanks a lot!

But I have a question:
My form is divided into tabs, so when I convert to .pdf, only fist tab is converted, and not the whole form.
Is my problem in tabs or is there some kind of a limit?

My next question is regarding encoding(?), when I create .pdf-s, I loose my local characters. (č,ć,ž,đ...)

thanks
ttomljen 27 Mar, 2013
I realized that the problem is not in the tabs than in the part of the questionnaire where it starts my custom code, after custom code field TCPDF stop with creating.

In the custom code I entered manually table with fields(Text Box).

If you could maybe help what could be the problem.

Thanks,
Tom
GreyHead 27 Mar, 2013
Hi Tom,

There's probably something in the Custom Code that give TCPDF indegestion. I don't think that it will accept *all* HTML tags; check the TCPDF library documents to see what is OK.

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