andyhutch77 / MvcRazorToPdf

Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125 stars 105 forks source link

Charset UTF-8 / Unicode #24

Closed marcinkiewicz closed 9 years ago

marcinkiewicz commented 9 years ago

Hi! How could I change charset of output pdf file, because there are some characters missing and they are not rendered in the pdf.

chaintng commented 9 years ago

Thai language also has this issue too.

andyhutch77 commented 9 years ago

@chaintan17 Hi, there is an example here (all be it in Java) that displays polish text.

http://stackoverflow.com/questions/29102552/convert-html-to-pdf-by-itext-xmlworker-with-polish-letters

http://itextpdf.com/sandbox/xmlworker/ParseHtml2

Please give this a try, the source code is open source so if it works submit a pull request and I will include it.