OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

Joomla Real Estate

Go to bottom Favoured: 0

Thumbs in PDF

admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Thumbs in PDF 12 Years, 5 Months ago
Karma: 102  
Hello,

You need check function displayHouseMainPdf in realestatemanager.html

Please take attention to
Code:

    ob_end_clean();
    ob_start();


and to

Code:

   $tbl = ob_get_contents();
    ob_end_clean();
        require_once($mosConfig_absolute_path ."/components/com_realestatemanager/tcpdf/config/lang/eng.php");
        require_once($mosConfig_absolute_path ."/components/com_realestatemanager/tcpdf/tcpdf.php");
        
        $pdf = new TCPDF1('P', 'mm', 'A4', true, 'UTF-8', false);
        //$pdf->SetAuthor('');
        $pdf->SetTitle('Real Estate manager');
        $pdf->SetFont('freesans', 'B', 20);
        $pdf->AddPage();
        //$pdf->Write(0, 'Real Estate manager', '', 0, 'L', true, 0, false, false, 0);
        $pdf->SetFont('freesans', '', 10);
        $pdf->writeHTML($tbl, true, false, false, false, '');
        $pdf->Output('Real_Estate_manager.pdf', 'I');
        exit; 



and again, you need understand we use tcpdf library for show house to PDF - there are possible some self output errors or CSS requirements

So you may be will need create alone CSS for PDF

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
fleerdam (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Thumbs in PDF 12 Years, 5 Months ago
Karma: 0  
I dont understand what you are saying in your lasts post.

I'm able to add the thumbs to de PDF butt the alignment of each image is strange.
The thumbs are alignt but below each other. Step by step.

It's strange that the alignment at print is okay but bij PDF is not okay.

Can you please help me?
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Thumbs in PDF 12 Years, 5 Months ago
Karma: 102  
Hello,

For Print layout - responsible Browser what client use. So how you in browser see webpage look - exactly so you will see page will look on Printer.(if you special not set other)

For PDF - we use TCPDF library. So it self set how page will look in it. It set that layout with help CSS and HTML - but library self manage how all look.
So you need create alone PDF layout and that alone PDF layout adajast. That look like adjast one WEB page for different web browsers. In all browsers one WEB page look different

Thanks
Ordasoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»