Non unicode compatible characters disappear during pdf to image conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ogencoglu
Posts: 4
Joined: 2015-11-19T18:27:25-07:00
Authentication code: 1151

Non unicode compatible characters disappear during pdf to image conversion

Post by ogencoglu »

Hi,

I have bunch of pdfs. All has scandinavian characters such as ä Ä ö å etc. While converting these to jpg by simply

Code: Select all

convert -density 400 K53.pdf test.jpg
in some of the output images these special characters are disappearing.

This problem is not present on my Windows machine but only on my ubuntu server. Both has IM 6.9.2-0 on it.

Any ideas?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by fmw42 »

Your unix server probably does not have those fonts on it or IM is unaware of their location.
ogencoglu
Posts: 4
Joined: 2015-11-19T18:27:25-07:00
Authentication code: 1151

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by ogencoglu »

But other letters are still there. For example "käsitellän" in the pdf becomes "k sitell n" in the image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by fmw42 »

Prehaps, the font you seem to have is not a full UTF-8 compatible version of that font.
ogencoglu
Posts: 4
Joined: 2015-11-19T18:27:25-07:00
Authentication code: 1151

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by ogencoglu »

I copied all the fonts from my Windows machine to the unix server and installed them all. Still missing the scandinavian characters. Any workaround?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by fmw42 »

What do you get from

Code: Select all

convert -version
on both systems with regard to the delegates listed?

Are you missing either freetype or fontconfig?

And do you have the same Ghostscript version on both

Code: Select all

gs --version
ogencoglu
Posts: 4
Joined: 2015-11-19T18:27:25-07:00
Authentication code: 1151

Re: Non unicode compatible characters disappear during pdf to image conversion

Post by ogencoglu »

I solved the problem by upgrading GS from 9.10 to 9.15. Thanks.
Post Reply