Skip to main content
In sn-plugin-lib later than 0.1.65, it is best not to use this API. It is kept for compatibility with older versions. Use PluginFileAPI.getPageSize instead; for the current page, first use getCurrentFilePath and getCurrentPageNum to get the file path and page number.
sn-plugin-lib 0.1.65 and earlier: this API returns the display size of the currently opened page and is intended for current-page element operations such as batchUpdatePageElements, insertPageElements, and modifyPageElements. When these APIs operate on the current page, call getPageDisplaySize to get the current page display size instead of calling PluginFileAPI.getPageSize, otherwise the position data may not match.
Returns

Example