Defect #32740

Incorrect characters when copying out of a Redmine generated PDF

Added by liam Bosh about 3 years ago. Updated about 3 years ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:PDF export
Target version:-
Resolution: Affected version:4.0.6


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.


training-8-Redmine 3.4.2.pdf - PDF Generated with 3.4.2 - correct (96 KB) liam Bosh, 2020-01-02 15:25

training-8-Redmine 4.1.0.pdf - PDF Generated with 4.1.0 - incorrect (96 KB) liam Bosh, 2020-01-02 15:27


#1 Updated by Go MAEDA about 3 years ago

  • Status changed from New to Confirmed

Probably the issue is caused by 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:

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]

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

#2 Updated by Go MAEDA about 3 years ago

  • Affected version changed from 4.1.0 to 4.0.6

Also available in: Atom PDF