-1
Good evening everyone, I wonder if anyone can help me with Dompdf. I am using codeigniter and bootstrap as the basis of the project. I need to generate a PDF with a product gallery, the problem is that I can’t force a line break. Items always appear in each other’s freight.
//controller
public function ImprimirTrabalho(){
#pesquisando modelo do trabalho
$pesquisaModelo = $this->Trabalho->trabalho_layout($this->uri->segment(2));
#passando Modelo do trabalho para a variavel modelo
$modelo = $pesquisaModelo['0']['layout'];
ob_start();
$this->load->view('header_impressao');
$this->load->view($modelo);
$pdf = ob_get_clean();
$this->pdf->loadHtml($pdf);
// (Optional) Setup the paper size and orientation
$this->pdf->setPaper('A4', '');
// Render the HTML as PDF
$this->pdf->render();
// Output the generated PDF to Browser
$this->pdf->stream("",array("Attachment" => false));
}