Reputation: 103
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:
But no matter how deep I read the documentation I cannot find a function which would help me in the second step.
Upvotes: 0
Views: 128
Reputation: 3778
I've managed this countin the chars and calculated how many you could fit, in my case 228, it was 2 tables with photos for every page. Of course you have to define a safe range because some chars takes more space than others, or use a monospaced font, account for paragraphs, line breaks, etc.
But no, never found a native method to check for this.
Upvotes: 1