Bug 345489 - Adobe Reader shows wrong character in annotation created by Okular
Summary: Adobe Reader shows wrong character in annotation created by Okular
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.20.2
Platform: Debian unstable Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL: http://1drv.ms/1GQzYTD
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 20:05 UTC by cloudict
Modified: 2021-03-09 23:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The file for posterity (8.99 KB, application/pdf)
2015-03-24 22:47 UTC, Albert Astals Cid
Details
pdf annotation examples (102.78 KB, application/zip)
2015-03-24 23:08 UTC, cloudict
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cloudict 2015-03-24 20:05:37 UTC
I found a possible bug of the PDF annotation feature. I added some Chinese annotation into a PDF file with Okular 0.20.2 in Linux, and open the file with Adobe Reader 11.0.0.379 in Windows. Most of the characters in the annotation are correct. However, some characters become wrong characters. I checked these wrong characters, and had the following observation: In Okular, annotations are saved in UTF-16. If the 2-byte code of a character includes "0D", it will be converted to "0A" if shown in Adobe Reader, so the character goes wrong. For example, the Chinese character "不" (U+4E0D) will be shown as "上" (U+4E0A) in the annotation in Adobe Reader. BTW, I tested some other PDF tool to add Chinese annotations. The annotations added by Adobe Reader and Foxit Reader can both be shown correctly in Adobe Reader. I am not sure whether it is a bug of Okular. Although the stored UTF-16 strings are correct, I am not sure whether some meta-info for the annotation is correct. Well, it might also be a bug in Adobe Reader. I have made an example PDF file: <http://1drv.ms/1GQzYTD>, you can download and test it. Will you please take a look? Thank you very much!


Reproducible: Always
Comment 1 Albert Astals Cid 2015-03-24 22:47:13 UTC
Created attachment 91722 [details]
The file for posterity
Comment 2 Albert Astals Cid 2015-03-24 22:47:55 UTC
Can you please attach (here not in onedrive) the bug that is correctly created by foxit and shows correctly in adobe reader (is it shown correctly in okular too?)
Comment 3 cloudict 2015-03-24 23:08:17 UTC
Created attachment 91723 [details]
pdf annotation examples

The PDF annotation examples created by Adobe, Okular, and Foxit are attached. All the 3 PDF files are shown correctly in Okular and Foxit. However, the PDF file annotated by Okular cannot be shown correctly in Adobe, as shown in the "different.png". Thanks!
Comment 4 cloudict 2015-03-24 23:57:55 UTC
I also asked this issue in the Adobe Reader community. One of the reply <https://forums.adobe.com/message/7341360#7341360> said the behavior of Adobe Reader (change 0x0D to 0x0A) is correct according to ISO 32000-1. He thought Okular did something wrong (write "0x0D" directly in literal strings). Will you please take a look? Thanks!
Comment 5 Albert Astals Cid 2015-03-25 21:03:47 UTC
Needs investigation, it's most probably a poppler bug anyway
Comment 6 Justin Zobel 2021-03-09 23:59:30 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.