cpdf-source icon indicating copy to clipboard operation
cpdf-source copied to clipboard

cpdf text file to pdf and Cyrillic

Open grylem opened this issue 2 years ago • 1 comments

Hi printf %s\n проверка >file cpdf -typeset file -create-pdf-papersize a3portrait -font Helvetica -font-size 10 -o out.pdf output pdf has weird characters.

Regards out.pdf .

grylem avatar Dec 30 '21 10:12 grylem

The PDF 14 standard fonts used by cpdf cover only the Latin 1 character set. Cpdf uses the PDF encoding WinAnsiEncoding which is almost identical to Latin-1:

https://en.wikipedia.org/wiki/Windows-1252

Cpdf doesn't yet know how to embed other fonts.

However, I am leaving this bug report open, because -typeset should warn about the missing characters, rather than producing garbage.

johnwhitington avatar Dec 30 '21 12:12 johnwhitington