Description: Text is out of text box's rectangle when using --convert-to pdf in commandline. Anchor's position is relative from page. Steps to Reproduce: 1. Download attachment 2. Convert it to PDF from commandline: 'instdir/program/soffice --headless --convert-to pdf /home/adm/Downloads/text6.docx --outdir /home/adm/Downloads/' Actual Results: The text is out of text box's rectangle. See resulting PDF Expected Results: The text is in text box's rectangle. Reproducible: Always User Profile Reset: No Additional Info: see bug 140598: https://bugs.documentfoundation.org/show_bug.cgi?id=140598 https://git.libreoffice.org/core/+/493a916a3113e877835c9bc7c93faef0d29f9a33%5E%21 sw/source/core/doc/textboxhelper.cxx : if (aRect.TopLeft() != Point(0, 0)) { pFormat->SetFormatAttr(aNewHOri); pFormat->SetFormatAttr(aNewVOri); } else SAL_WARN("sw.core", "SwTextBoxHelper::syncProperty: Repositioning failed!"); Code "if (aRect.TopLeft() != Point(0, 0))" seems to have no effect on bug 140598. Bug 140598 is not reproduced when I delete the code. But it causes the text to be outside the range of the text box. Why do not SetFormatAttr if (aRect.TopLeft() != Point(0, 0)) ?
Created attachment 176758 [details] Upload by mistake
Created attachment 176760 [details] output pdf
Created attachment 176761 [details] test case
You are using a font named 等线 in the text box. Where can I download this font? I don't see the problem when converting, but I lack the font. Set to NEEDINFO. Change back to UNCONFIRMED after you have provided the information.
Dear oulanlan, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear oulanlan, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp