B
B
b47021702019-07-19 14:43:40
Fonts
b4702170, 2019-07-19 14:43:40

How to create cyrillic pdf file from ghostscript?

Good afternoon. Trying to generate pdf via ghostscript as follows

gswin64c -sDEVICE=pdfwrite -sOutputFile=myfile.pdf -sFONTPATH="C:\Program Files\gs\gs9.27\Resource\Font" -dEmbedAllFonts=true -dNOPAUSE -dBATCH C:\Users\Username\Desktop\gsTest\encodetest.ps
.
The file is created, but instead of Cyrillic characters - krakozyabry.
Tried output like this:
%!PS-Adobe-1.0 
/Roboto-Regular findfont 
5 scalefont          
setfont               

120 120 moveto
(Текст) show
 
showpage

Roboto converted from ttf to pfa.
On the Internet, I found advice to output through glyphshow character by character:
/cyrillico glyphshow, but it also does not work. Symbol names could not be found, I did not find any mention of Cyrillic in the postscript laguage reference ( https://www.adobe.com/jp/print/postscript/pdfs/PLR...
I tried to change ps encodings - ANSI, UTF-8, KOI8- R, Win1251, ISO8859-5
How to display Cyrillic in final pdf?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question