I have a document comprising of a few hundred blank pages (different page sizes and orientations) that I wish to put line numbers on. I can enable line numbering in Writer, however when I hold the enter key down, and get to the end of the first page, a new page is created. I don’t want this, as I want the line numbers to flow onto the next blank page. Attached at the bottom is a small sample of the blank pages that I wish to fill with line numbers (various sizes and orientation). I need a quick way to do this, as in practice I will have hundreds of blank pages, and the order,orientation, size of these blank pages must be preserved. I simply want line numbers from the top to bottom on these existing blank pages. Is there a setting I can change in Writer to enable this, or alternatively does anyone have any example of a macro script that would work?
EDIT - I have found an ugly hack to do what I want to do. But am still looking for a way to do this in Writer. Below is the approach I have taken:
The only way I have found to accomplish my task is to fill up a single page completely with a text character and export to PDF. I then export my few hundred blank pages to pdf and use a simple command line program to overlay the single page with the text character onto the hundreds of blank pages. Once this is complete, I then convert this pdf to ODT and I once again have my blank pages in writer, but these are filled with a single text character. To get rid of this text character, I then use “find and replace” and replace the character with a blank space. I then turn on line numbering and have line numbers on my blank pages. This works perfectly for what I want to achieve, but I can’t believe there is no way to put line numbers on existing blank pages in Writer, either by a macro or some other trick.
Test file created by leory method:
test.odt