Created attachment 97417 [details]
Example Japanese text document and resulting PDF in zip file
When exporting a vertical-text document to PDF, the character orientation changes, so that it becomes a plain left-to-right document rotated by 90 degrees instead of a vertical text document.
* Create new text document.
* Paste in plain text copied from some source, say Japanese Wikipedia.
* In Format->Page change the text direction to "right-to-left (vertical)".
* Choose proper Asian font to ensure proper metrics, make sure the text flows properly from right to left (using the text direction buttons if necessary).
* Export to PDF. The characters are all rotated by 90 degrees.
An example document (content copied from the LibreOffice item in Wikipedia) and the resulting PDF are attached.
Tested the attached file in Linux Mint with LibO 3.3.0, 4.2.4, and 4.3 beta 2 and unfortunately couldnt reproduce. Also tested 4.2.4 on Windows 7 and still couldnt reproduce. Likely another mac only font issue.
@Herouth: had this been showing correctly in previous version of LibreOffice?
I haven't tested it before, so just now I downloaded a copy of LibreOffice 3.3.4 and tested the same document, and the result is the same.
Reproduced on OS X 10.9.3 LO4.3beta2.
The exported PDF indeed chances character orientation.
NEW and adding "osx only" to title.
A workaround, maybe also a hint to the person attempting to solve this:
I ran into the same problem, but could produce a .pdf with correctly oriented letters by using the pdf output option in the print dialog instead of Export to PDF.
(In reply to Tobias Schlüter from comment #4)
> A workaround, maybe also a hint to the person attempting to solve this:
> I ran into the same problem, but could produce a .pdf with correctly
> oriented letters by using the pdf output option in the print dialog instead
> of Export to PDF.
Printing to PDF
(a) Causes the loss of cross-references and table-of-content links in the document.
(b) Is good only for printing. The text is not contiguous, you can't select a sentence and copy it, for example. The selection simply doesn't follow the vertical lines, which it does in the PDF exported directly from LibreOffice.
Created attachment 121460 [details]
How to crate this file
With LibreOffice 5.0.3 for Windows,
1. Create a new Writer document
2. Go to [Format] > [Page...] > tab: [Page]
-> Set "Text direction" to [Right-to-left (vertical)] then click [OK]
3. Type 电脑 ("a computer" in Chinese) in the document
-> You will see these two characters appear vertically with no rotation
-> Latin characters may rotate 90 degrees which may be an expected behavior
4. Click [Export as PDF]
-> The Chinese characters are being rotated 90 degrees.
Created attachment 121461 [details]
expected behavior in Chinese
Taking the same steps as "actual_exportPDFchineseRotates90degrees.pdf" except the last one:
Print the document with any third-party PDF printer. In this document I used "Bullzip" and got the expected result, i.e., the two Chinese characters "电脑" has *not* been rotated.
"Export PDF rotates Asian language characters 90 degrees if text direction is set to vertical"
IMPORTANT. This issue has been also confirmed with
- Other Asian languages (Chinese (Simplified), in addition to Japanese)
- Other platforms (Windows and Linux)
- LibreOffice 126.96.36.199 Portable for Windows: Chinese (Simplified), Japanese
- LibreOffice 5.0.4 for Linux: Japanese
How to Replicate the Issue (easy):
- See my note dated 2015-12-21 05:38:05 UTC
- The one in the initial note by Herouth Maoz dated 2014-04-15 15:52:10 UTC sounds right.
Can't reproduce on 5.3.0 beta1 in Windows.
I can no longer replicate the issue either.
* LibreOffice 188.8.131.52 (US-English)
* Windows 7 64-bit (US-English)
Maybe it's safe to assume the issue has been resolved in the recent versions.
Tested on LibreOffice 184.108.40.206, The issue has NOT been resolved on Mac OS X, on which I originally reported it.
I have no idea why it was decided it was an "all platforms" issue. It is strictly a Mac OS X bug, please test it only on Mac OS X, and please do not close based on testing on any other platform.
It will be interesting you test 5.3.0 beta to confirm if new layout engine have any influence on the output, as users that reported the same problem on other platforms seems to no longer have this problem.
Exporting the PDF works fine for me on
Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
CPU Threads: 2; OS Version: Mac OS X 10.12.5; UI Render: default; Layout Engine: new;
Locale: en-US (en_US.UTF-8); Calc: group
@Herouth: Can you also confirm that its fixed on Mac?
(In reply to Yousuf Philips (jay) from comment #14)
> @Herouth: Can you also confirm that its fixed on Mac?