Project

General

Profile

Actions

Defect #32740

closed

Incorrect characters when copying out of a Redmine generated PDF

Added by liam Bosh almost 5 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PDF export
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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
"


Files

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

Related issues

Related to Redmine - Patch #38272: Update RBPDF to 1.21ClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA almost 5 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.

Actions #2

Updated by Go MAEDA almost 5 years ago

  • Affected version changed from 4.1.0 to 4.0.6
Actions #3

Updated by Jun NAITOH almost 2 years ago

I fixed it with rbpdf 1.21.0.

The fixed issues is as follows.
Actions #4

Updated by Go MAEDA almost 2 years ago

Actions #5

Updated by Go MAEDA almost 2 years ago

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Target version set to 4.2.10
  • Resolution set to Fixed

Jun NAITOH wrote:

I fixed it with rbpdf 1.21.0.

The fixed issues is as follows.

RBPDF has been updated in r22102, r22103, and r22104. The issue will be fixed in Redmine 4.2.10 and 5.0.5.

Actions

Also available in: Atom PDF