https://bugs.documentfoundation.org/show_bug.cgi?id=146091
Bug ID: 146091
Summary: Text is out of text box's rectangle when using
--convert-to pdf in commandline
Product: LibreOffice
Version: 7.1.6.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
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)) ?
--
You are receiving this mail because:
You are the assignee for the bug.