プロジェクト

全般

プロフィール

Vote #80569

未完了

Incorrect characters when copying out of a Redmine generated PDF

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

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

0%

予定工数:
category_id:
39
version_id:
0
issue_org_id:
32740
author_id:
435980
assigned_to_id:
0
comments:
2
status_id:
9
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
157
ステータス-->[Confirmed]

説明

When copying the text out of a Redmine generated PDF opened in Adobe Acrobat DC (2019.021.20058) the text when pasted is just shown as squares rather than the actual text.
i.e.
"Description
jkjk"

becomes
"


journals

Probably the issue is caused by "rbpdf":https://rubygems.org/gems/rbpdf.

I have confirmed that the reported mojibake is reproducible when rbpdf 1.19.4 or later is installed. The copied text was pasted propery when I updated Gemfile as follows:

<pre><code class="diff">
diff --git a/Gemfile b/Gemfile
index 354adc747..258b4516a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -13,7 +13,7 @@ gem "mail", "~> 2.7.1"
gem "csv", "~> 3.1.1"
gem "nokogiri", "~> 1.10.0"
gem "i18n", "~> 1.6.0"
-gem "rbpdf", "~> 1.20.0"
+gem "rbpdf", "1.19.3"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
</code></pre>

Please note that the above workaround causes other problems such as #28565 and #28125.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリPDF export_39 にセット

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

いいね!0
いいね!0