Nie mogę sobie poradzić z generowaniem pdf`a przez mpdf od 5 dni przeglądam gogle i próbuję wszystkiego.
wypróbowane sposoby :
1.plik zapisywany w utf-8 bez BOM , ANSI bez rezultatów .
2.Plik nie posiada żadnych białych znaków przed <?php w kodzie i za ?>
3.ob_start();
jeśli przekierowuję przez post "index.php=?go wyświetla mi się ostrzeżenie i błąd
Warning: Cannot modify header information - headers already sent by (output xxxxxx/index.php:21) in /xxx/mpdf.php on line 7076 Warning: Cannot modify header information - headers already sent by (output started at /xxxxxx/index.php:21) in xxxxxx/mpdf.php on line 1727 mPDF error: Some data has already been output to browser, can't send PDF file
jeśli wpisuję cały adres do pliku wychodzi mi błąd
Warning: Cannot modify header information - headers already sent by (output started at /xxxx.php:2) in /xxx/fpdf.php on line 1676 FPDF error: Some data has already been output to browser, can't send PDF file
kod pliku
<?php require_once('pdf1/mpdf.php'); $mpdf = new mPDF(); $mpdf->WriteHTML('<p>Your first taste of creating PDF from HTML</p>'); $mpdf->Output(); exit; ?>
Proszę o pomoc
dziękuję i pozdrawiam Jarod