Vote #80569
未完了Incorrect characters when copying out of a Redmine generated PDF
0%
説明
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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------