Hello! I found the method in Docs for getting document page count: GetPageCount(). How can i use this method via http request to get docx document page count? I already have deployed onlyoffice on my server and use only ConvertService
Sorry for stupid question and thanks in advance
Hello @pinagor
I believe you are referring to GetPageCount of Office API, is that correct? If so, then this method can be used from the macro or plugin context inside the editor.
What is your overall usage scenario around this method? How you would like to use the information it returns further?
In general, you can utilize it from macro or plugin, also from Document Builder, but you cannot obtain result that it returns with a HTTP request.
You are right, I mean this method.
I thought I could find out the number of pages in a docx. But if there is no way to do this via http, then this will not help me. I have a Python microservice that works with docx documents, but ConvertService can be slow for large documents and I can’t use it to convert documents to PDF, such as getting the page count.
Thank you for replying
So it is like setting up a check before conversion. Not sure if it can help for every single case, as it also important to consider the complexity of the file.