Skip to content

Is it possible to export Arabic and Chinese characters in pdf export #234

@sirishayalavarthi

Description

@sirishayalavarthi

I have tried to download some Arabic characters and Chinese characters showing ###

this is the code in the parser

public byte[] generateFile(final String markdown) {

    Node document = getParser().parse(markdown);
    String html = getRenderer().render(document);
    String htmlDoc = applyCssStyling(appendHtmlAndCssTag(html));

    System.out.print(htmlDoc);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    PdfConverterExtension.exportToPdf(out, htmlDoc, null, getFlexOptions());
    return out.toByteArray();
}

here is HTML

Disclaimer: By reading this you agree that the template is working as per requirement
I’mmm ڛ ڛ 中文字符 ـش ـص Agree/Disagree bla bla bla

here is output pdf attached
download.pdf

this is how text in pdf looks
Disclaimer: By reading this you agree that the template is working as per requirement
I’mmm # # #### ## ## Agree/Disagree bla bla bla

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions