Send to pdf

Topics: Developer Forum
Mar 5, 2009 at 1:47 PM
Is there a way to create a pdf file without the table and cell lines?
When I create a xls file I only apply style to the title line and in Excel It looks ok, but when I send the same code to create a pdf file all the lines show the cell borders.

$objPHPExcel->getActiveSheet()->getStyle('A3')->applyFromArray(
  array(
   'font'    => array(
    'bold'      => true
   ),
   'alignment' => array(
    'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_LEFT,
   ),
   'borders' => array(
    'bottom'     => array(
     'style' => PHPExcel_Style_Border::BORDER_THIN
     )        
   )   
  )  
 );

 $objPHPExcel->getActiveSheet()->duplicateStyle( $objPHPExcel->getActiveSheet()->getStyle('A3'), 'B3:C3' );



Thank you
Nerea
Mar 5, 2009 at 3:40 PM
Problem solved commenting
/*
     if ($borders == '') {
      $borders = 0;
     }
     if ($sheet->getShowGridlines()) {
      $borders = 'LTRB';
     }
*/
in the pdf.php file.