How can I get which pages does a Google Docs Paragraph reside on?
I would like to write a
google-apps-script that would compile multiple small text files (hundreds of song lyrics) into one long Google text document. I would like to make sure that no song lyrics get cut in half (only if it alone would fill more than a page) as that would make things inconvenient. I would like to do roughly the following:
- Append another song lyric
- Check if it overflows to the next page
- If it does, remove the paragraph, append a page break, then re-append the song lyric.
- Repeat
But no matter how deep I read the documentation I cannot find a function which would help me in the second step.