To avoid page break, you may customize the paperSize parameter. For example, if you want the width to be 6inches and the length to be 15inches you may set the paper size as { “paperSize”: “6in 15in” }.
paperSize