<html>
<head>
<style>
@page {
  size: 200px 200px;
  margin: 40px;
}
body, html {
  margin: 0;
}
</style>
</head>
<body>
  <div style="position: fixed; transform: rotate(45deg); width: 50px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px; left: 20px; top: 10px;"></div>
  <div style="page-break-after: always;"><div style="border-bottom: 1px solid orange;"></div></div>
  <div style="border-bottom: 1px solid red;"></div>
</body>
</html>
