jeenyus Posted August 4, 2016 Report Share Posted August 4, 2016 (edited) laba diena gribu nokonverēt html uz pdf unicode un latviski. mēģinu ar http://html2pdf.fr bet nevaru saprast kā dabūt lv burtus. default fonti protams nav lv, mēģinu pievienot TTF fontus bet met kļūdas laukā pievienojot fontu. tas ir OpenSans no google $pdf->addFont('Opensans', '', 'C:\code\fonts\Open_Sans\OpenSans-Regular.ttf'); izmet Parse error: syntax error, unexpected 'F' (T_STRING) in C:\code\fonts\Open_Sans\OpenSans-Regular.ttf on line 195 nokomentējiet lūdzu ja ir pieredze. varbūt ir labāks konvertieris paldies Edited August 4, 2016 by jeenyus Link to comment Share on other sites More sharing options...
jurchiks Posted August 4, 2016 Report Share Posted August 4, 2016 http://wkhtmltopdf.org/ Link to comment Share on other sites More sharing options...
jeenyus Posted August 4, 2016 Author Report Share Posted August 4, 2016 (edited) pašatbilde http://fonts.snm-portal.com/ jānokonvertē fonts, jāiekopē fonts direktorijā setDefaultFont() Edited August 4, 2016 by jeenyus Link to comment Share on other sites More sharing options...
Recommended Posts