By: Romulo
Date: 2012-09-21
Time: 17:30
|
html2pdf in tinybutstrong
Hello, anyone here has managed to use the html2pdf.fr tinybutstrong?
|
By: Skrol29
Date: 2012-09-24
Time: 02:07
|
Re: html2pdf in tinybutstrong
Hi,
Yes I did it several times.
It's a good solution for producing PDF with TBS.
|
By: Romulo
Date: 2012-09-24
Time: 13:17
|
Re: html2pdf in tinybutstrong
Thanks, I'm using and I agree with you. And of course the best class that I found to pdf so far!!
|
By: Sandeep
Date: 2013-06-04
Time: 06:00
|
Re: html2pdf in tinybutstrong
Hi,
Please help me on html2pdf. How can I use it to producing a pdf file with TBS?
Your help would be very appreciate.
Thanks,
Sandeep
|
By: Romulo
Date: 2013-06-04
Time: 13:26
|
Re: html2pdf in tinybutstrong
I put my html in a variable like the code below and the class MPDF54 I create the pdf.
require_once('../../../Classes/tbs/tbs_class.php') ;
$TBS = new clsTinyButStrong ;
$TBS->Render = TBS_NOTHING;
$TBS -> LoadTemplate('html/MyTemplate.html') ;
$TBS -> Show() ;
$x = $TBS->Source;
//Begin PDF.
require_once('../../../Classes/MPDF54/mpdf.php');
$mpdf=new mPDF('utf-8','A4','','',32,25,47,47,10,10);
$mpdf->SetTitle('Title My Document');
$mpdf->SetSubject('Subject');
$mpdf->SetAuthor('Author');
$mpdf->SetCreator('Creator Page');
$mpdf->WriteHTML($x);
$mpdf->Output(EV_NAME.'_'.US_SEID.'_'.date('Ymd_His').'dod.pdf','D');
// End PDF.
exit;
|
|
By: Sandeep
Date: 2013-06-04
Time: 13:44
|
Re: html2pdf in tinybutstrong
Got it. Thanks your reply with example.
Can I download class MPDF54 with necessary files from any where?
Thanks,
|
By: Romulo
Date: 2013-06-04
Time: 16:34
|
Re: html2pdf in tinybutstrong
|
|
Posting in progress.
Please wait...
|