I have following html page
<html>
<body>
<img src="..."/>
<img src="..."/>
<img src="..."/>
</body>
</html>
I want to make the pdf of this page but every image should be on new page.
Use css property page-break-before: always;
See example HTML below:
<html>
<head>
<style>
.page-heading { page-break-before: always; }
</style>
</head>
<body>
<img src="..."/>
<div class="page-heading">
<img src="..."/>
</div>
<div class="page-heading">
<img src="..."/>
</div>
</body>
</html>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.