See this chapter for information how to you use Custom Pages in WebOffice 10.5 SP2. WebOffice 10.5 SP2 by default provides some custom tools which are located in the directory C:\Tomcat\webapps\<WebOffice application>\pub\custom_pages.
Note: See chapter Web Integration - Custom Tool for details about the configuration of custom pages in WebOffice author.