How to insert an emoticon in a PDFDocument?

Hi,
How to add a Unicode graphic character (U+code) in a PDFDocument? Each emoticon is replaced by one or two question marks?
Thanks,

XOJO PDFs aren’t yet Unicode compatible. You can only print chars until code 255.

Unicode support in the PDF spec was introduced in 1996, PDF spec 1.2, storing strings as UTF-16BE only and rendering. In 2017 with the PDF 2.0 Adobe introduced UTF-8 support allowing even more compression.

So the current XOJO PDF spec is pre-PDF 1.2 spec. Earlier 90’s yet.

That PDFDocEncoding was a predefined text encoding unique to PDF. It was intended to support a superset of the ISO Latin 1 character set.

1 Like