php html2pdf не может открыть PDF с пользовательским шрифтом на Adobe Reader

Я не могу открыть PDF-файлы, созданные с помощью php html2pdf, даже если в браузерах я могу правильно их отобразить
Зачем?

<?php
ob_start();
?>
<page orientation="P" backtop="10mm" backbottom="30mm" backleft="10mm" backright="10mm" style="font-family:Century_Gothic">
some text
</page>

<?php
$content=ob_get_clean();
require_once(dirname(__FILE__).'/../../html2pdf/html2pdf.class.php');
$html2pdf=new HTML2PDF('P','A4','it');
$html2pdf->addFont('Century_Gothic','normal','Century_Gothic.php');
$html2pdf->WriteHTML($content);
$pdf=addslashes($html2pdf->Output('',true));
$html2pdf->Output("test.pdf","F");
?>

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector