Description: Upon editing a PDF, Headers are sometimes created in third party programs. Although you can highlight the text box and click center for the text alignment, you can not do the same with the text box itself to keep the overall scope of the header center aligned between margins. So I am requesting an enhancement of the centering option so that if you click on the text box to highlight, click on it again to set the centering alignment for the text box itself. Also if you can provide a Header template tool so that businesses can customize their header whether left, center, or right alignment would be awesome. Thank you. Steps to Reproduce: 1.Open PDF document with a business header, 2.Click on text box field to highlight and drag out of place, 3.try to recenter the text box option is only manually done. Actual Results: Document originally created in OpenOffice and in Microsoft Word. Both were saved as PDF versions by these programs. Both versions when opened for editing in LibreOffice doesn't automatically center as saved instructions within the document properties. Expected Results: Click once to highlight text field turning highlight to default color. Click twice on the Text field to turn the highlight to open a text box control function for alignment options. Could be a separate menu option listed under INSERT "Headers" Reproducible: Always User Profile Reset: No Additional Info: Version: 24.8.5.2 (X86_64) / LibreOffice Community Build ID: fddf2685c70b461e7832239a0162a77216259f22 CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded
"Editing" a PDF with LibreOffice makes no attempt to maintain the precise width of source PDF objects when creating the Draw text boxes holding text runs being parsed from the source PDF. Even if centered on the source document--e.g. OOXML or ODF, the resulting text box will not be centered. That is bcz the poppler and cairo based filters only record the origin position and the dimensions of individual glyphs. Those glyphs are then strung back together as text runs withing the Draw text shapes, with no lexical context nor sense of typesetting. If you need better fidelity to source PDF on the ODF document canvas, insert as an Image (using a different pdfium based filter). If you need to work within a source ODF, but export to PDF use the LibreOffice Hybrid PDF format which attaches the ODF source to the PDF and LibreOffice will preferentially open the ODF for actual editing rather than the low fidelity PDF rendering. Try the pdfium based insert filter, but in general you should not depend on LibreOffice as a PDF editor.
(In reply to V Stuart Foote from comment #1) > "Editing" a PDF with LibreOffice makes no attempt to maintain the precise > width of source PDF objects when creating the Draw text boxes holding text > runs being parsed from the source PDF. Even if centered on the source > document--e.g. OOXML or ODF, the resulting text box will not be centered. > > That is bcz the poppler and cairo based filters only record the origin > position and the dimensions of individual glyphs. Those glyphs are then > strung back together as text runs withing the Draw text shapes, with no > lexical context nor sense of typesetting. > > If you need better fidelity to source PDF on the ODF document canvas, insert > as an Image (using a different pdfium based filter). > > If you need to work within a source ODF, but export to PDF use the > LibreOffice Hybrid PDF format which attaches the ODF source to the PDF and > LibreOffice will preferentially open the ODF for actual editing rather than > the low fidelity PDF rendering. > > Try the pdfium based insert filter, but in general you should not depend on > LibreOffice as a PDF editor. Quote: ""Editing" a PDF with LibreOffice makes no attempt to maintain the precise width of source PDF objects when creating the Draw text boxes holding text runs being parsed from the source PDF." This is redundant as this is a enhancement request for the editing portion of the LibreOffice DRAW program. I fully understand that it doesn't keep the exact perimeters of the prior program associations of locations of objects whether text, images or other such as color. What you are referring to is Basic common knowledge of the normal editing options currently available. What this request of enhancement was referring to is not currently an option within the LibreOffice options of editing a PDF. The request is "a centering function enhancement of a text box according to current margin settings as a clickable icon the same way it is for the text INSIDE the text field."
Created attachment 199931 [details] Screenshot There are buttons on the sidebar and Standard toolbar, to center horizontally, vertically, and other aligns. And also through Menu>Shape>Align objects.
(In reply to William from comment #2) > ... > What this request of enhancement was referring to is not currently an option > within the LibreOffice options of editing a PDF. The request is "a centering > function enhancement of a text box according to current margin settings as a > clickable icon the same way it is for the text INSIDE the text field." Yes, and that capability already exists. Once a draw text shape object has been poppler parsed from PDF and converted by cairo libs into drawing object on document canvas the text shape can be centered to page margins. From main menu Shape -> 'Align Objects' -> 'Centered' for the selected text shape. But, working with PDF text runs, you probably would prefer to first use the Shape -> 'Consolidate Text' to merge the multiple draw text shapes into a single text shape, and then Align the consolidated text to center.