# Text at bottom of last page

I am working on a template in LO Writer and I'd like to have text (a signature line) at the bottom of the very last page. Above the text is a table which is automatically filled with often long texts that can cause page breaks. The solution should therefore work regardless of the number of pages. The last page might be anywhere from first page to 100+th page. The last page will likely still have content (the table) other than the signature line. I cannot use endnotes (that's at the top of the page) or a footer (that's on every page and I can't use a different style for the last page because it might also be the first page, it's automatically generated) or anchor it to the page (that's just on one page and you have to specify which one) and frankly, I'm at loss. Any ideas?

edit retag close merge delete

Sort by » oldest newest most voted

You may insert a frame

• anchor to paragraph, properties :: type :: position :: vertical bottom to page text area

For "power users" you can manage a protection of the "last line" like this:

• Insert a section as the very last object in your text; in that way that there is no paragraph behind it. So nobody is able to write below the section.
• Insert the frame as above mentioned
• Protect the section - done

[/edit]

more

Unfortunately, this does not work for me, it stays on the first page.

( 2018-05-23 18:35:16 +0200 )edit

The trick is to anchor the frame to a dedicated paragraph. See my answer update.

( 2018-05-23 22:33:02 +0200 )edit

I tried it again but it did not work. Then I tried anchoring it to character rather than to paragraph and it worked! Everything else in your answer was very helpful and accurate but I'm afraid you must have confused it there but now all is well. I'd appreciate it if you could correct that in your answer so I can mark it as correct. I also noticed that this solution also works with a Textbox. Thank you very much for your help! I couldn't have done it without you.

( 2018-05-24 08:22:40 +0200 )edit

Anchoring as character instead of to paragraph sometimes gives better results. It depends on circumstances, but it may prove "dangerous" when you edit the paragraph: erasing the anchor location will delete the frame (which does not happen wit "to paragraph"). Once again, choosing the right anchor is a matter of experimenting, due to the effective local formatting and context.

( 2018-05-24 13:03:26 +0200 )edit

Wrt improving my answer: 1) do you suggest I mention character anchor? 2) where is my confusion? Initially I thought only of automating signature insertion. Should I keep only the alignment issue?

( 2018-05-24 13:05:51 +0200 )edit

Three directions:

• If you really design a template in LO concept, i.e. a file with extension .ott, just put your "signature" paragraph as the last element in the template.

When you "instantiate" the template, begin to type above your "signature" or, if you already have more fixed fixed text in your template (TOC or index placeholder, tables, copyright, …), where the logical start of your document is.

If you don't need the "signature" in the document, delete it (it won't affect the template).

• Define an "AutoText" for your "signature" and trigger its expansion when you need it.

• Use the replacement capabilities of Tools>AutoCorrect>AutoCorrect Options, Replace tab: define a new pattern in Replace and your "signature" in With. After that, when you type the pattern, it is automatically replaced by your "signature". Note you will need to type the final Return to end the paragraph signature.

EDIT to cope with alignment specification

In your template, add an empty paragraph in the very last position. Adjust the spacing properties and font size so that it is as unobtrusive as possible. With the cursor inside, Insert>Frame, anchored To paragraph. Position properties are : Vertical Bottom to Page Text Area, Horizontal as you seem fit (Center is quite common for a "signature`). Width in Size should be large enough for your purpose. Do not forget to remove the default border.

Type your signature inside the frame.

The frame is automatically aligned at the bottom of the last page. Tune the properties of the last empty paragraph to avoid some undesired effect such as the "signature" shifted to a new page although there is enough room for it in the preceding page (this is an effect of paragraph spacing).

If this answer helped you, please accept it by clicking the check mark ✔ to the left and, karma permitting, upvote it. If this resolves your problem, close the question, that will help other people with the same question.

more

Please take into account that I need the signature line at the bottom of the last page, not just on the last page. Even if there's only two or three words on the page (other than the ones with the signature line) the signature line has to be at the very bottom. Also, once I have created the template, I will not be instantiating the template manually, the process will be automated.

( 2018-05-23 18:27:54 +0200 )edit

@wowza42

I edited my first solution, adding a protected section as the very last part of the text.

How to fix the section as last part:

• Type some letters in the last paragraph, mark the entire last paragraph, then goto menu Insert → section

If you fail:

• Delete the last paragraph of text by going to the last paragraph of section, then hit CTRL+SHIFT+DEL

The way to break that:

Hit ALT+ENTER (last paragraph of section) then you create a paragraph below, even if section protected

( 2018-05-24 14:06:27 +0200 )edit

@wowza42 wrote: Also, once I have created the template, I will not be instantiating the template manually, the process will be automated.

I have no clue what to do then and what automation you are going to start...

( 2018-05-24 14:10:29 +0200 )edit