Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
TCPDF error
  • Hi,
    I am using tcpdf for pdf generation i have generated some static data.. but when the amount of data exceeded from a specific limits it gives the same error "Unable to open document text/html not supported" code is follow $list = '<ul
    $list .= '<li
    $list .= '</ul>';
    $pdf->writeHTML($list, true, false, true, false, '');
    $pdf->output('example_002.pdf', 'I'); It gives correct result but when i add another li element then i am the pdf get downloaded but can't opened
    Any kind of help will really be appreciated Thanks in advance!!
  • In a FuelPHP application you can't send data to the client like you would in a plain PHP application: set some headers, output data, exit. It will not work. If you want to send a file to the client, use the File::download() method.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion