Buy Now
Sign in

send pdf by email after html to pdf action

lapo78 , February 17 at 08:08
L
lapo78
Hi,
i use chronoforms v4.
After read this guide
http://www.chronoengine.com/faqs/4133-how-can-i-create-a-pdf-including-form-results-.html
FROM
 if($PDF_view != 'F'){​
​ $mainframe =& JFactory::getApplication();​
​ $mainframe->close();​
​ }
TO
 if($PDF_view != 'F'){​
​​
​ if ( $PDF_view == 'I' || $PDF_view == 'FI' ) {​
​ $mainframe =& JFactory::getApplication();​
​ $mainframe->close();​
​ }​
​ }
if i select only download (other forms with this "view" ) i get pdf document corrupt.
thanks
GreyHead
Hi lapo78,
What exactly is the problem you are having?
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
L
lapo78
pdf is corrupted, i can't open it
erro_chronforms_pdf.jpg
Attachments
erro_chronforms_pdf.jpg
erro_chronforms_pdf.jpg
(53.61 KiB)
72 Downloads/Views
GreyHead
Hi lapo78,
If you save the file to the server and download it from there is that also corrupt?
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
L
lapo78
no, it works
GreyHead
Hi lapo78,
You could save the pdf to the server, then show the User a message including a download link. Direct downloads are not always the most useful solution :-(
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
L
lapo78
if i install v6 can i send pdf and download it?
GreyHead
Hi lapo78 ,
Sorry I have no idea. I believe that the TCPDF library is the same so you might get the same problem.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
L
lapo78
the problem is the TCPDF library or the fix bug ? Without fix bug download "view" works fine.
thanks
GreyHead
Hi lapo78,
The bug fix is old - it may have been fixed in the TCPDF action if you have a later version. If it works without the bug fix that sounds good to me.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much