J-F-Liu / lopdf

A Rust library for PDF document manipulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of how to create a document containing non-ASCII characters

iensu opened this issue · comments

What is the simplest way to render non-ASCII characters like ä, ö when creating a document?

I've looked through the examples in the issues linked below, but I haven't been able to find a working solution with the builtin fonts, anything non-ASCII renders as ^ .

It would be great to have an example of non-ASCII and potentially CJKV document creation which I assume requires loading a custom font.