I found a similar subject in this forum, but I couldn’t find any solution for this. I tried page-break-before and after in while I create url.
I couldn’t make @media print {} to work either.
I use printToFileAsync to convert HTML to PDF, but when I print out multiple pages I couldn’t control page breaks.
any help would be appreciated.