-3
$html=$this->load->view('r2013ms/Long_term_agreement',$data);
$obj_pdf->writeHTML($html);
$obj_pdf->Output('Agree.pdf', 'I');

Severity: Notice

Message: Undefined offset: 0

Filename: tcpdf/tcpdf.php

Line Number: 17155

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: tcpdf/tcpdf.php

Line Number: 17522

TCPDF ERROR: Some data has already been output, can't send PDF file

Alessandro Minoccheri
  • 35,521
  • 22
  • 122
  • 171
Megha K
  • 1
  • 2

1 Answers1

1

When you have "TCPDF ERROR: Some data has already been output, can't send PDF file" it's because you have displayed something in screen. Maybe another warning.

Try to put an "@" before the function's call, that will supress the error message source

if all works fine, you know where search the error

Community
  • 1
  • 1
Pelto
  • 11
  • 2