wicked_pdf_image_tag wicked test source open library htmltopdf how example pdf wkhtmltopdf

wicked - wkhtmltopdf footer-html que codifica utf-8



wicked_pdf_image_tag (2)

Asegúrese de que tiene una fuente específica instalada allí. Necesito hindi (lengua india) en mis archivos PDF. Poner etiqueta meta no había resuelto mi problema. Así que instalé fuentes hindi en mi caja debian por

sudo apt-get install fonts-indic

wkhtmltopdf --codificar utf-8 no funciona para --footer-html.

Estoy usando el siguiente comando. Ambos archivos HTML también están en formato utf8.

wkhtmltopdf --dpi 120 -O Portrait --encoding ''utf-8'' --footer-html /tmp/testFooter.html /tmp/testMain.html /tmp/testPDF.pdf

Ambos archivos tienen caracteres franceses. Pero en el pie de página del pdf tenemos malos personajes.

<html> <head> <title></title> </head> <body> <div style="width:95%;font-size:9pt;font-family:Arial;"> <div style="border-top: 1px solid black;width: 100%;text-align: center;"> test - Guérin 691BANNE - FRANCE - SA au capital 0 Euros -737 729 - Téléphone : 86 03</div></div> </body> </html>

Se imprime la siguiente imagen


Intente agregar la siguiente línea en el elemento de encabezado HTML del pie de página:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">