I am trying to get images from a pdf with ghostscripts using this sentence:
gs -dNOPAUSE -sDEVICE=jpeg -dFirstPage=1 -dLastPage=5 -sOutputFile=output%d.jpg -dJPEGQ=100 -r500 -q intput.pdf -c q
but when convert the image throws:
Substituting font: ...
There is some way existing to do conversion without substitute the font?, just generate the image exactly like pdf.
'exactly like the PDF' doesn't necessarily make sense. The PDF clearly uses a font which it doesn't embed, so any PDF consumer will have to use a 'substitute'. The substitute might be the original font, if that's available.
If you have the original font available, you can edit the Ghostscript fontmap (or cidfmap) to add that font to the list of fonts which Ghostscript knows about, and it will then use that font when an input file requests a font of that name (and doesn't define it).