Hola a todos y muchas gracias por responder, les aclaro que no conozco casi 
nada de cakephp....

uds tienen razon, habia un error en el nombre de la función, pero igual no 
me funcionaba, asi que cambie todo y quedo de esta manera:

class EquiposController extends AppController {

    function pdfcompu()
    {
        Configure::write('debug',2);
          $this->layout = 'pdf'; //this will use the pdf.ctp layout
         $compus = $this->Equipo->find('all');
    }

la vista:
<?php
App::import('Vendor','tcpdf/tcpdf');
// extend TCPF with custom functions
class MYPDF extends TCPDF {
         
    public function Header() {
        $this->SetFont('helvetica', 'B', 20);
        $this->Ln(50);
    } 
    
    // Colored table
    public function ColoredTable($header,$data,$subName,$insName) {
        // Colors, line width and bold font
        $this->Ln(13);
        $this->Cell(20, 20, 'INSTITUCIÓN: '.$insName, '');
        $this->Ln(10);
        $this->Cell(20, 20, 'SUBDIVISIÓN: '.$subName, '');
        $this->Ln(10);
        $this->Cell(20, 20, 'NÚMERO DE EQUIPOS: '.count($data), '');
        $this->Ln(20);
        $this->SetFillColor(255, 0, 0);
        $this->SetTextColor(255);
        $this->SetDrawColor(128, 0, 0);
        $this->SetLineWidth(0.3);
        $this->SetFont('', 'B');
        // Header
        $w = array(65,45,40,70,61,50);
        for($i = 0; $i < count($header); $i++)
        $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);
        $this->Ln();
        // Color and font restoration
        $this->SetFillColor(224, 235, 255);
        $this->SetTextColor(0);
        $this->SetFont('');
        
      
        // Data
        $fill = 0;
        $this->SetFont('times', '', 11);
            
        foreach($data as $row) {
   
                $this->Cell($w[0], 6, $row[0]['id'], 'LR', 0, 'L', 
$fill,'',1);
                    $this->Cell($w[1], 6, $row[0]['Nombre'], 'LR', 0, 'L', 
$fill,'',1);
                $this->Cell($w[2], 6, $row[0]['Serial'], 'LR', 0, 'L', 
$fill,'',1);
                $this->Cell($w[3], 6, $row[0]['Marca'], 'LR', 0, 'L', 
$fill,'',1);
                $this->Cell($w[4], 6, $row[0]['Cantidad'], 'LR', 0, 'L', 
$fill,'',1);
                $this->Cell($w[5], 6, $row[0]['Ubicacion'], 'LR', 0, 'L', 
$fill,'',1);
                
            $this->Ln();
            $fill=!$fill;
        }
        $this->Cell(array_sum($w), 0, '', 'T');
    }
    
}

// create new PDF document
$tcpdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 
'UTF-8', false);

// set document information
$tcpdf->SetCreator(PDF_CREATOR);
$tcpdf->SetAuthor('RRTIC');
$tcpdf->SetTitle('REPORTE DE COMPUTADORAS');
$tcpdf->SetSubject('TCPDF Tutorial');
$tcpdf->SetKeywords('TCPDF, PDF, example, test, guide');

// set default header data
$tcpdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, 
PDF_HEADER_TITLE, PDF_HEADER_STRING);

// set header and footer fonts
$tcpdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$tcpdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));

// set default monospaced font
$tcpdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);

//set margins
$tcpdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$tcpdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$tcpdf->SetFooterMargin(PDF_MARGIN_FOOTER);

//set auto page breaks
$tcpdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

//set image scale factor
$tcpdf->setImageScale(PDF_IMAGE_SCALE_RATIO); 

//set some language-dependent strings
//$pdf->setLanguageArray($l); 

// ---------------------------------------------------------

// set font
$tcpdf->SetFont('helvetica', '', 12);

// add a page
$tcpdf->AddPage('L', 'LEGAL');

//Column titles
$header = array('Equipo', 'Nombre', 'Ip', 'Sistema 
Operativo','Versión','Usuarios');

//$pdf->Image(K_PATH_IMAGES.'logo-gob.png', 15, 8, 330);


/*$dataTotalFisrt = $dataTotal;
$beginAt = 0;
while(count($dataTotalFisrt) >=1)
{
    $dataa = $pdf->getAllsub($dataTotalFisrt,$beginAt);
    $dataTotalFisrt=$dataa[1];
    $beginAt = $dataa[2];
    $pdf->AddPage('L', 'LEGAL');
    $pdf->Image(K_PATH_IMAGES.'logo-gob.png', 15, 8, 330);
    $pdf->ColoredTable($header, $dataa[0],$dataa[3],$dataa[4]);
}*/
// print colored table
//var_dump(count($dataTotal));
//$pdf->ColoredTable($header, $dataTotal,$subName,$insName);

// ---------------------------------------------------------

//Close and output PDF document
$tcpdf->Output('listado de computadoras.pdf', 'I');

?>

este es un codigo que encontré para la version 1.3, yo uso la 2.1..
pero ahora me sale la ventana con caracteres ilegibles, tanto para ver como 
para descargar, será un problema con la codificación?

-- 
Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de Grupos 
de Google.
Para ver este debate en la Web, visita 
https://groups.google.com/d/msg/cakephp-es/-/vfntFxdmyRgJ.
Para publicar una entrada en este grupo, envía un correo electrónico a 
cakephp-es@googlegroups.com.
Para anular tu suscripción a este grupo, envía un correo electrónico a 
cakephp-es+unsubscr...@googlegroups.com
Para tener acceso a más opciones, visita el grupo en 
http://groups.google.com/group/cakephp-es?hl=es.

Responder a