Bug 439488

Summary: Some letters are omitted in the visible hint for the electronic signature.
Product: [Applications] okular Reporter: smihael <smihael>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The signee's name (ending with -ič) is shown correctly in the Signatures panel, but not in the visible hint (-i).

Description smihael 2021-07-04 18:41:57 UTC
Some letters are omitted in the visible hint for the electronic signature. Thus names might be shown incorrectly, which is a blocking bug that can prevents from using Okular for signing documents. Instead of "Test Testič" documents show a stamp with "Test Tesevi". 

STEPS TO REPRODUCE
1. Get a recent version of Okular (21.04.1) with a recent version of the poppler backend (21.03.0) that enable signing PDFs with a visible hint as described at https://cloudstore.zih.tu-dresden.de/index.php/s/j5BKKyJYZFBzGsB
2. Add a certificate with first or last name that contains c with caron (č). Š, ž, ć. đ and other non-ASCII letters are probably also affected. 
3. Open pdf, go to Tools>Digitally sign and draw a rectangle in the area you want to add a visual hint for the digital signature.


OBSERVED RESULT

A gray box saying Signed by Name Surname and date but without letter "č".

Signed by: Test Testi
....................................
Date: 2021-07-04T20:24:31



EXPECTED RESULT

Full name including non-ASCII letters should be added.

Signed by: Test Testič
....................................
Date: 2021-07-04T20:24:31
Comment 1 smihael 2022-02-19 15:39:04 UTC
Created attachment 146936 [details]
The signee's name (ending with -ič) is shown correctly in the Signatures panel, but not in the visible hint (-i).

The bug persist in Okular 21.12.2.
Comment 2 smihael 2022-06-09 09:28:17 UTC
This bug has been resolved by a recent upgrade of the Poppler backend.

See: https://tsdgeos.blogspot.com/2022/04/poppler-finally-has-support-for.html

Using a recent enough combination of Okular (tested with 22.04.1) and Poppler (tested with 22.06.0), signatures works as intended now.