I'm trying to make a booklet using python script and LaTeX.
Script is just to convert a plain-text document into latex file.
The problem is, that on the bottom of the page I have to place few lines for notes. But the space for this lines is different on each page and depends from the amount of text on the top. So if I'm using constant number of lines, there is sometimes no space left on the bottom and sometimes to much space. That's why I need to know, how many space do I have and how many lines I have to put to fill the page.
There is the example of the booklet in attach.
Have anyone some suggestions?
Thank you (and sorry for my English
