Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mPDF]- can't send PDF file
jarod21
post 14.04.2012, 17:22:45
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 14.04.2012

Ostrzeżenie: (0%)
-----


Witam,
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
  1. Warning: Cannot modify header information - headers already sent by (output xxxxxx/index.php:21) in /xxx/mpdf.php on line 7076
  2.  
  3. Warning: Cannot modify header information - headers already sent by (output started at /xxxxxx/index.php:21) in xxxxxx/mpdf.php on line 1727
  4. 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
  1. Warning: Cannot modify header information - headers already sent by (output started at /xxxx.php:2) in /xxx/fpdf.php on line 1676
  2. FPDF error: Some data has already been output to browser, can't send PDF file


kod pliku
  1. <?php
  2. require_once('pdf1/mpdf.php');
  3. $mpdf = new mPDF();
  4. $mpdf->WriteHTML('<p>Your first taste of creating PDF from HTML</p>');
  5. $mpdf->Output();
  6. ?>



Proszę o pomoc
dziękuję i pozdrawiam Jarod
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 31.07.2025 - 07:23