Project

General

Profile

Actions

Patch #1204

closed

Patch for scramble of PDF properties in UTF-8 environment

Added by Hajime Baba over 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2008-05-07
Due date:
% Done:

0%

Estimated time:

Description

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


Files

sample1.PNG (43.2 KB) sample1.PNG Hajime Baba, 2008-05-07 15:09
sample2.PNG (101 KB) sample2.PNG Hajime Baba, 2008-05-07 15:09
ifpdf_helper.rb.diff (1.05 KB) ifpdf_helper.rb.diff Hajime Baba, 2008-05-07 15:09
Actions

Also available in: Atom PDF