I'm trying to create an index page of a Google document using Google Docs API. The index is a list of chapters and the page number of the chapter.
For example:
- Chapter 1: A Long-expected Party ... 1
- Chapter 2: The Shadow of the Past ... 21
- Chapter 3: Three is Company ... 54 (Whereas 1, 21, 54 are page numbers)
I got the content of the document so far, however, the page number seems to be not included. Is there any workaround?
Thanks
Reference: Google Docs API: https://developers.google.com/docs/api/reference/rest/v1/documents#Document