ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

[feature] Get element's page number #17

Closed nitely closed 7 years ago

nitely commented 7 years ago

I'm trying to auto-generate a table of content. I wonder if it's possible to have an API that returns the current page number for a given element. Something like:

var oDocument = Api.GetDocument();
var elm = oDocument.GetElement(0);
elm.getPageNumber();

Not sure if this is the right place to ask this.

agolybev commented 7 years ago

Hi @nitely. Thank you for iinterest to Onlyoffice DocumentServer. We are implementing table of content feature in Document Server now. We are going to add such functionality for documentserver plugins afterwards.