An option editing the content.xml file to add new paragraphs and create a numbered list with the paragraphs of all pages:
- Add a second paragraph in page 1 (it will be useful to add some content to this paragraph to find it easily a few steps latter).
- Save.
- Extract and edit the content.xml file.
- Find the recently added paragraph, take note of the style-name, and detele the paragraph.¹
- Find
<text:p text:style-name="P[0-5]"/>
and replace all 80 times² with &<text:p text:style-name="P6"/>
.³
- Save and replace the content.xml file in its container file.
- Open the file.
- Select all.
- Press
F12
to create numbered list.
Edit: Your sample file has 5 page styles: P1-P5. Note the P[0-5]
in the find text that I proposed (no P6
). You need to Find & Replace; just 80 clicks on the Replace All button (no Paste 80 times). Each click add a new paragraph to each page. Maybe instead of P[0-5]
you need to use P[0-9]{1,3}
(this will search from P0 to P999).
The style-name of the paragraph with AAAAAAA content is P6
? Or instead of 6
there is another number close to a few hundred?
All pages in the document have the same height (as in the sample)? In that case 80 additional paragraphs per page are enough. If not, there we have a problem. I don’t know how many page sizes this work has, but a better way around this problem is to use a single page style for all pages of the same size (something I suggested in my first comment). That way, in each style the new paragraph could be added a different number of times.
¹ <text:p text:style-name="P6">
some content</text:p>
; P6
is the style-name of the new paragraph.
² 81 lines fit on each page.
³ I used [0-5]
and P6
based on the sample provided.
Tested with LibreOffice 6.4.7.2 (x64); OS: Windows 10.0.
Add Answer is reserved for solutions. If you think the answer is not satisfactory, add a comment below, or click edit (below your question) to add more information. Thanks.
Check the mark ( → ) to the left of the answer that solves your question.
If the answer helped you, you can mark the up arrow () that is on the left (to vote, you need to have karma of at least 5).