I have been given the task to look at a pdf export that can now export in languages with non latin characters (e.g. chinese/japanese/etc)
the exports just show squares instead of the characters which are displayed correctly in the preview.
I believe I need to embed a suitable font but I'm not having much luck. Am I missing something or approaching the problem in the wrong way?
My export function looks like this:
exportPdf: function (domElementId, fileName, landscape) {
kendo.pdf.defineFont({
"unicode-font": '../fonts/Unicode/unicode-font.ttf'
});
kendo.drawing.drawDOM('#' + domElementId, {
forcePageBreak: ".page-break",
paperSize: "A4",
landscape: typeof landscape !== 'undefined' ? landscape : false,
margin: "1cm",
template: $("#pdf-page-template").html(),
})
.then(function (group) {
return kendo.drawing.exportPDF(group, {});
})
.done(function (data) {
kendo.saveAs({
dataURI: data,
fileName: fileName + ".pdf"
});
});
}
I'm wondering if the relative path is the problem but I don't see any errors. I didn't set this up and have very little experience with your tools so I'm sure I am just missing something obvious.
Thanks for your help.