Control: retitle -1 NO-BREAK SPACE ( ) in a file generated by 'dump_data' 
is changed to EURO SIGN (€) by 'update_info'

Dear maintainer,

This issue was already reported to iText-questions mailing list [1].
A workaround to this issue was included in the report, and
it was merged iText official subversion repository at revision 3028 [2].
I know that pdftk is using iText as a back-end.
But unfortunately, it seems to be using very old iText version [3].
It might be the version of 2.0.6 or older (current latest version is 5.5.9).

[1] http://permalink.gmane.org/gmane.comp.java.lib.itext.general/34529
[2] https://sourceforge.net/p/itext/code/3028/
[3] http://developers.itextpdf.com/content/changelogs

This issue is not peculiar to a bookmark title,
most of meta-data (such as Author, Title, Keywords) are also affected.

$ pdftk ./no-break-space-in-metadata.pdf dump_data output 
./no-break-space-in-metadata.pdf.info
$ pdftk ./no-break-space-in-metadata.pdf update_info 
./no-break-space-in-metadata.pdf.info output 
./no-break-space-in-metadata.pdf.update_info
$ pdftk ./no-break-space-in-metadata.pdf.update_info dump_data output 
./no-break-space-in-metadata.pdf.update_info.info
$ diff ./no-break-space-in-metadata.pdf.info 
./no-break-space-in-metadata.pdf.update_info.info
6c6
< InfoValue: no-break&#160;space&#160;in&#160;Subject
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Subject
12c12
< InfoValue: no-break&#160;space&#160;in&#160;Author
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Author
15c15
< InfoValue: no-break&#160;space&#160;in&#160;Keywords
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Keywords
18c18
< InfoValue: no-break&#160;space&#160;in&#160;Title
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Title
21c21
< InfoValue: no-break&#160;space&#160;in&#160;Creator
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Creator
24c24
< InfoValue: no-break&#160;space&#160;in&#160;Producer
---
> InfoValue: no-break&#8364;space&#8364;in&#8364;Producer
29c29
< BookmarkTitle: no-break&#160;space&#160;in&#160;bookmark&#160;title
---
> BookmarkTitle: no-break&#8364;space&#8364;in&#8364;bookmark&#8364;title

Please find attached file also,
I attached a test file [1] which is used in the demonstration.

As Holger reported,
if Chinese character (U+53c3) is included in bookmark title,
NO-BREAK SPACE is preserved.

Sincerely yours,
Ryuunosuke Ayanokouzi
--
AYANOKOUZI, Ryuunosuke <i38w...@yahoo.co.jp>

Attachment: no-break-space-in-metadata.pdf
Description: Adobe PDF document

Attachment: pgpcF1013sGBg.pgp
Description: OpenPGP Digital Signature

Reply via email to