プロジェクト

全般

プロフィール

Vote #63192

完了

Patch for scramble of PDF properties in UTF-8 environment

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
開始日:
2008/05/07
期日:
進捗率:

0%

予定工数:
category_id:
0
version_id:
7
issue_org_id:
1204
author_id:
1001
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hi, forks,

Thank you for the development of such a great product!

For PDF properties (such as Title, Author, and else), the encoding
of multi-byte characters should be UTF-16BE with BOM prefix, not UTF-8.

Below is a patch for this problem. The patch will provide
method overridings of SetTitle() and textstring(),
which are original in vendor/plugins/rfpdf/lib/rfpdf/fpdf.rb.

I have checked this patch in Japanese environment (see attached images),
but I suppose it should be applicable to other multi-byte environments
(such as Chinese, Korean, and so on) encoded by UTF-8.

Thank you for your consideration in advance.

Best Regards,
Hajime BABA


journals

Version 0.7.1 was released. Switch to 0.8.
--------------------------------------------------------------------------------
This patch applied cleanly for me but I am unsure of how to test it or what else needs to be done to accept it.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed in r2233. Thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • 対象バージョン0.8.1_7 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0