why chinese MardownFile can't convert to pdf
Yfygithub opened this issue · comments
Yfygithub commented
i try to convert chinese MardownFile to pdf but get messy code in pdf,what‘s wrong with it?
henryhqhuang commented
you should make sure you have the chinese font-family, if not, add it
ITextFontResolver fontResolver = renderer.getFontResolver(); fontResolver.addFont("font/simsun.ttc", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
and the html should add follow code
`
`