send pdf by email after html to pdf action

la lapo78 17 Feb, 2018
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
Gr GreyHead 17 Feb, 2018
Hi lapo78,
​
What exactly is the problem you are having?
​
Bob
la lapo78 17 Feb, 2018
pdf is corrupted, i can't open it
​
send pdf by email after html to pdf action image 1
Gr GreyHead 17 Feb, 2018
Hi lapo78,
​
If you save the file to the server and download it from there is that also corrupt?
​
Bob
Gr GreyHead 17 Feb, 2018
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
la lapo78 17 Feb, 2018
if i install v6 can i send pdf and download it?
Gr GreyHead 17 Feb, 2018
Hi lapo78 ,
​
Sorry I have no idea. I believe that the TCPDF library is the same so you might get the same problem.
​
Bob
la lapo78 17 Feb, 2018
the problem is the TCPDF library or the fix bug ? Without fix bug download "view" works fine.
thanks
Gr GreyHead 17 Feb, 2018
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
This topic is locked and no more replies can be posted.