Apache OpenOffice (AOO) Bugzilla – Issue 102002
Wrong autogrow direction for RTL after PDF import
Last modified: 2013-01-23 01:35:49 UTC
This is a follow-up to issue 90800. After applying the patch there, RTL documents look ok in Draw. However, when editing the text object, RTL objects autogrow to the right, instead of to the left. Setting the "draw:textarea-horizontal-align" property to "right" for RTL text objects fixes the autogrow problem, but causes the text to be mispositioned, apparently because of some manipulation of RTL text that takes place in the Draw UI code. Compare the attached screenshots, and note how with right-alignment, the lines are no longer even against the right margin. If after import, the text object's alignment is set to the right, then there's no problem. I'm attaching a macro which does this for all text objects in an RTL document. However, this is only a workaround, and ideally, PDF import and should be able to both position the text correctly and set the autogrow correctly.
Created attachment 62327 [details] How it looks when the RTL text boxes are left-aligned
Created attachment 62328 [details] How it looks when the RTL text boxes are right-aligned
Created attachment 62329 [details] Macro to right-align all text objects containg any RTL text
Reassigned.