LibreOffice Writer Macro to search for blank lines at the bottom of a page and paste there another text from remaining document below the blank line by cutting it

I finished the macro before few minutes, but I used own new algorithm and I write the documentation. There are some unexpected insidiousnesses in LibreOffice, so I also add the descriptions of ones to documentation. But unfortunately I have backache, so I need more days to finish it.