Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("./mpdf50/mpdf.php");
- $html='<html><head><title>Тест</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
- <body>
- <p>А Б В Г Д Е Ё Ж З И Й К Л M Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я</p>
- <p>а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я</p>
- <p>1234567890</p>
- <p>!@#$%^&*()</p>
- <p>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</p>
- <p>a b c d e f g h i j k l m n o p q r s t u v w x y z</p>
- </body>
- </html>';
- $mpdf=new mPDF('UTF-8-s');
- $mpdf->ignore_invalid_utf8 = true;
- $mpdf->SetAutoFont(AUTOFONT_ALL);
- $mpdf->WriteHTML($html);
- $mpdf->Output("/home/user/public_html/playground/site/pdf/test.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement