Page 1 of 1

pdf with internationnal title

Posted: 2012-07-21T15:23:15-07:00
by broucaries
Title seems really bad (from
ttps://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/667409
)

convert -compress jpeg -quality 85 rose: documentåäöÅÄÖ.pdf
pdfinfo documentåäöÅÄÖ.pdf
Title: documentåäöÖ×Ì
Producer: ImageMagick 6.7.7-10 2012-06-29 Q16 http://www.imagemagick.org
CreationDate: Sun Jul 22 00:20:29 2012
ModDate: Sun Jul 22 00:20:29 2012
Tagged: no
Pages: 1
Encrypted: no
Page size: 70 x 46 pts
File size: 4741 bytes
Optimized: no
PDF version: 1.3

Re: pdf with internationnal title

Posted: 2012-11-30T07:44:23-07:00
by wasow
Confirms!

Code: Select all

$ echo $LANG
ru_RU.UTF-8
$ convert Документы.jpg Документы.pdf
gives pdf with title "Документы"

Code: Select all

$ echo 'ÐокÑменÑÑ' | iconv -f utf-8 -t iso-8859-1
Документы
Why pdf title is converted from iso-8859-1 to utf-8???

This is a huge problem, because there no any workarounds!

Re: pdf with internationnal title

Posted: 2016-01-05T01:53:47-07:00
by Petr
Hello,

I got a similar bug report, see:

https://bugzilla.suse.com/show_bug.cgi?id=867943

Basically, the title (string inside parenthesis) is expected to be UTF16BE, if I understand correctly. Other way to fix would be to not write /Title at all. What do you think?

Re: pdf with internationnal title

Posted: 2016-01-05T03:32:55-07:00
by magick
International titles are supported in ImageMagick 6.9.3-0, the current release. To retrofit the patch, see coders/pdf.c.

Re: pdf with internationnal title

Posted: 2016-01-05T05:03:00-07:00
by Petr
Thank you!