0

When I render a table on a google doc, and if the table contains large content such that it makes the table to render on multiple pages.

Is there a way to know if the same table is extended to multiple pages? Using API or DOM or any other idea?

Please check the below screenshot for the use case.

Check the below Image for the scenario I am talking about

Prateek Jain
  • 141
  • 1
  • 6

1 Answers1

0

After looking at this there seems to not be a way to get the page of an element. Neither with Apps Script nor the Docs API.

The elements in both are placed by the startIndex and endIndex. My guess is that they do it this way because the index are more constant and will not depend on font/spacing used.

If you need to control when a new page starts there is actual an element called PageBreak that my be useful for your case.


And if you think something like this should be implemented you can try look reporting a new Feature Request for Apps Script or directly to the Docs API

Useful Questions

Raserhin
  • 2,516
  • 1
  • 10
  • 14