I'm using the following command to convert (the first page of) a PDF file to an image.
Code: Select all
convert '/path/to/file.pdf[0]' -alpha off -resize '1024x1024' -quality '75' '/tmp/file.jpg'
My understanding is that ImageMagick support special characters (in UTF-8) and should render them correctly if the font provides glyphs for them. So my hypothesis is that the PDF uses a font (either by name of embeded in the PDF) that does not provide glyphs that ImageMagick can uses. Off course, the PDF render fine in Adobe reader and other PDF viewer (including Gnome's evince on the same computer).
Iv'e no idea how to validate my hypothesis and how to fix it. It may also be completely wrong and an easy solution may be available.
Any idea?
Note: see https://wada-main-sandbox.s3.amazonaws. ... A4-Web.pdf for a sample PDF file that causes the issue.