-
Notifications
You must be signed in to change notification settings - Fork 479
Open
Labels
Description
We have created a widget that uses the Sankore API and the addObject function to add a page to the document.
I cannot find a function to delete pages directly with the API.
I would like to do something like:
const pageCount = await window.sankore.pageCount();
for (let i = pageCount - 1; i >= 1; i--) {
await window.sankore.removePage(i);
}
The goal would be to delete all added pages except the first page where the widget is located.
Is it possible to add this function?
Thank you for your help, and well done to the whole team.