It worked here in jsreport script but how I am going to do it in API side?

It worked here in jsreport script but how I am going to do it in API side?

here's my script to delete the first page, it won't work.

Hi, I have resolved my problem by using appending the pages however I encountered new problem.
How I am going to delete the main page/first page? using script in API.
Please see image below.

Yes, I'm developing a designer that you can drag and drop the html components in the canvas so position absolute is needed able to use the x and y
Hi! it does not work.
Please check my the url link for playground demo.
Hi! I having a trouble when my table extends into next page because the components on the next page does not adjust into next page.
Please see sample image below..

Expectation: Table extends into 2nd page so I'm expecting the image should move into 3rd page