How to avoid page breaks inside content sections in output PDF generated from HTML using Expo.printToFileAsync on iOS

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.

I’m having this problem using Print.printToFileAsync.

On Android this works fine, on iOS this problem happen.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.