cpdf-source
cpdf-source copied to clipboard
cpdf text file to pdf and Cyrillic
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 .
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.