Bug 77490

Summary: PDF generated from vertical text has wrong character orientation for Japanese (OSX only)
Product: LibreOffice Reporter: Herouth Maoz <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: foss, iplaw67, philipz85, tabe
Version: 4.1.5.3 release   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 83066    
Attachments: Example Japanese text document and resulting PDF in zip file

Description Herouth Maoz 2014-04-15 15:52:10 UTC
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.
Comment 1 Jay Philips 2014-06-09 15:50:02 UTC
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?
Comment 2 Herouth Maoz 2014-06-09 18:45:57 UTC
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.
Comment 3 foss 2014-06-19 10:31:52 UTC
Reproduced on OS X 10.9.3 LO4.3beta2.

The exported PDF indeed chances character orientation.

NEW and adding "osx only" to title.
Comment 4 Tobias Schlüter 2014-10-28 14:07:55 UTC
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.
Comment 5 Herouth Maoz 2014-10-28 17:49:38 UTC
(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.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.