Forums

Plugin or software to convert form to printed PDF

daveboulter 20 Dec, 2013
Hi,

My client wants their form to be emailed to them as a PDF so they can just print and have their customer's sign. Is there any tools for doing this?

/daveb
daveboulter 13 Jan, 2014
Thanks very much and Happy New Year!
daveboulter 13 Jan, 2014
Hi,

I downloaded and configure a simple form like in the example. The PDF output I get has the following on the page, any ideas?

#gototop{border:1px solid #000;margin:5px;padding:5px;backgr
ound-color:#000;color:#fff;}
#gototop:hover{background-color:#000;color:#fff;}test


Thanks
GreyHead 13 Jan, 2014
Hi daveboulter,

That looks as if a bit of CSS is getting included. Pretty much impossible to say anything else from the information here. It isn't code from the FAQ as far as I can see.

Bob
daveboulter 13 Jan, 2014
Thanks Bob, that was my conclusion as well. Do you think the documentation for tcpdf will help me figure out what code module may be doing this? The content tab has only the word Test in it. I cant see anything in the configuration of the Action tcpdf that would allow CSS or similar to filter through.

/daveb
GreyHead 13 Jan, 2014
Hi dave,

I wondered if it might be a corrupted file in the action? I ran a quick search on the action files for #gototop{border and don't see it there anywhere.

Bob

PS I ran the same check across all the files on my J3 test site and didn't find it there either.
daveboulter 13 Jan, 2014
If I comment out lines 86-88:

if(isset($headData['style']['text/css'])){
$css = $headData['style']['text/css'];
}
in:
...../administrator/components/com_chronoforms/form_actions/tcpdf/cfaction_tcpdf.php

I can remove it. This area of the code says Load CSS if any. I think I should not have to hack that so a bit worried.

/daveb
pieroso 26 Feb, 2014
Hello! I have the same problem, I would like to know if you've solved by removing the two lines of code that you indicated.
Thanks.
Piero.
GreyHead 27 Feb, 2014
Hi pieroso,

It looks as though Dave fixed the problem with that change. The PDF action was written by a user for CFv4 on an earlier version of Joomla! so some updates may well be needed now. If it works and doesn't break anything else then the change is probably OK.

Bob
pieroso 27 Feb, 2014
Hi Bob,
I use chronoform 4.0 RC3.21 with joomla 1.5.26.
I removed those lines of code and everything seems to work fine.
Thanks to Dave for the solution and to you for your timely assistance.
This topic is locked and no more replies can be posted.