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 space in Subject --- > InfoValue: no-break€space€in€Subject 12c12 < InfoValue: no-break space in Author --- > InfoValue: no-break€space€in€Author 15c15 < InfoValue: no-break space in Keywords --- > InfoValue: no-break€space€in€Keywords 18c18 < InfoValue: no-break space in Title --- > InfoValue: no-break€space€in€Title 21c21 < InfoValue: no-break space in Creator --- > InfoValue: no-break€space€in€Creator 24c24 < InfoValue: no-break space in Producer --- > InfoValue: no-break€space€in€Producer 29c29 < BookmarkTitle: no-break space in bookmark title --- > BookmarkTitle: no-break€space€in€bookmark€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>
no-break-space-in-metadata.pdf
Description: Adobe PDF document
pgpcF1013sGBg.pgp
Description: OpenPGP Digital Signature