Mam problem z polskimi fontami w TCPDF 5.9 otóż: wrzucam sobie cały folder tcpdf na serwer, następnie edytuje sobie example_054.php:
<?php
require_once('../config/lang/pol.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN
, '', PDF_FONT_SIZE_MAIN
)); $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA
, '', PDF_FONT_SIZE_DATA
));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// IMPORTANT: disable font subsetting to allow users editing the document
$pdf->setFontSubsetting(false);
// set font
$pdf->SetFont('dejavusans', '', 10);
// add a page
$pdf->AddPage();
// create some HTML content
$html = <<<EOD
<h1>Zgłoszenie wolontariusza</h1>
<form method="post" action="http://localhost/printvars.php" enctype="multipart/form-data">
<br /><br /><label for="name">Imię:</label> <input type="text" name="name" value="" size="20" maxlength="30" /><br />
<label for="vorname">Nazwisko:</label> <input type="text" name="vorname" value="" size="20" maxlength="30" /><br />
<label for="data">Data i miejsce urodzenia:</label> <input type="text" name="data" value="" size="50" maxlength="60" /><br />
<h2>Adres zameldowania</h2>
<label for="kod">Kod pocztowy:</label> <input type="text" name="kod" value="" size="20" maxlength="30" /><br />
<label for="miejscowosc">Miejscowowsc:</label> <input type="text" name="miejscowowsc" value="" size="30" maxlength="40" /><br />
<label for="ulica">Ulica:</label> <input type="text" name="ulica" value="" size="30" maxlength="40" /><br />
<label for="numer">Nr lokalu:</label> <input type="text" name="numer" value="" size="10" maxlength="10" /><br />
<h2>Dane kontaktowe</h2>
<label for="telefon">Telefon:</label> <input type="text" name="telefon" value="" size="15" maxlength="20" /><br />
<label for="mail">E-mail:</label> <input type="text" name="mail" value="" size="20" maxlength="30" /><br />
<br />
<label for="dowod">Seria i nr dowodu:</label> <input type="text" name="dowod" value="" size="20" maxlength="30" /><br />
<label for="nip">NIP:</label> <input type="text" name="nip" value="" size="15" maxlength="20" /><br />
<label for="pesel">PESEL:</label> <input type="text" name="pesel" value="" size="15" maxlength="20" /><br /><br />
<label for="rodzice">Imiona rodzicow (wypelnia os. niepelnoletnia):</label> <input type="text" name="rodzice" value="" size="30" maxlength="40" /><br />
<label for="kontakt">Kontakt do rodzicow:</label> <input type="text" name="kontakt" value="" size="20" maxlength="30" /><br />
<h2>Wyksztalcenie</h2>
<input type="radio" name="radioquestion" id="rqa" value="1" /> <label for="rqa">gimnazjalne</label><br />
<input type="radio" name="radioquestion" id="rqb" value="2" checked="checked"/> <label for="rqb">srednie</label><br />
<input type="radio" name="radioquestion" id="rqc" value="3" /> <label for="rqc">licencjat</label><br />
<input type="radio" name="radioquestion" id="rqd" value="4" /> <label for="rqd">wyzsze</label><br />
<input type="radio" name="radioquestion" id="rqe" value="5" /> <label for="rqe">stopien naukowy</label><br /><br />
<input type="reset" name="reset" value="Reset" />
<input type="submit" name="submit" value="Wyslij" />
<input type="button" name="print" value="Drukuj" onclick="print()" />
<input type="hidden" name="hiddenfield" value="OK" />
<br />
</form>
EOD;
// output the HTML content
$pdf->writeHTML($html, true, 0, true, 0);
// reset pointer to the last page
$pdf->lastPage();
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output('example_054.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
Kodowanie ustawiam na UTF-8 i wrzucam do examples.
Folder fonts podmieniam na
http://www.tutorials.pl/wp-content/uploads...urces/fonts.rar, jednak w dalszym ciągu nie ma polskich znaków, zamiast nich pojawia się "?". Próbowałem zmieniać kodowanie praktycznie każdego pliku na UTF-8 (tcpdf_config.php, tcpdf.php etc.) jednak nic nie pomaga

Ktoś wie dlaczego?