Bug 114189 - Order of RTL characters in (many) PDFs reversed when opening them in Draw
Summary: Order of RTL characters in (many) PDFs reversed when opening them in Draw
Status: RESOLVED DUPLICATE of bug 97131
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.0.0.0.beta1
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Import-Draw
  Show dependency treegraph
 
Reported: 2017-11-30 23:04 UTC by Eyal Rozenberg
Modified: 2017-12-02 08:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
ODT to export to PDF (8.65 KB, application/vnd.oasis.opendocument.text)
2017-11-30 23:06 UTC, Eyal Rozenberg
Details
PDF result of export (11.63 KB, application/pdf)
2017-11-30 23:06 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2017-11-30 23:04:50 UTC
Description:
Many PDFs containing Hebrew text are such that, if you open them in a PDF viewer, the Hebrew text is displayed with proper directions and orders of glyphs; and selecting text from the PDF produces raw text in the clipboard in the correct order, i.e. it's not just some tromp-l'oeil for display purposes - and yet, if you open that same PDF in LO Draw - the order of the Hebrew glyphs gets reversed.

In fact, this happens even with PDFs created by LibreOffice itself (e.g. exported from LO Writer)!



Steps to Reproduce:
1. Open LO writer
2. Set the direction to RTL and the language to Hebrew
3. Write a few words, say, אחת שתיים שלוש ארבע
4. Export a PDF (don't save as PDF)
5. Open the attached PDF file in Draw.


Actual Results:  
The text you see is: עברא שולש םייתש תחא

Expected Results:
The text you should see is: אחת שתיים שלוש ארבע


Reproducible: Always


User Profile Reset: No



Additional Info:
Same thing happens with Arabic. Type: واحد اثنين ثلاثة أربعة in the ODT file.


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Eyal Rozenberg 2017-11-30 23:06:00 UTC
Created attachment 138159 [details]
ODT to export to PDF

For the very lazy...
Comment 2 Eyal Rozenberg 2017-11-30 23:06:45 UTC
Created attachment 138160 [details]
PDF result of export

... and the lazier still. This is what you want to open in Draw.
Comment 3 Yousuf Philips (jay) (retired) 2017-12-02 08:04:56 UTC

*** This bug has been marked as a duplicate of bug 97131 ***