I have some images that I'd like to rotate when creating a PDF. I can do that with CSS transform, but it results in the image incorrectly positioned, sometimes out of the page. Am I doing something wrong? Is this a bug/limitation?
A sample code:
In the PDF (Prince 9.0 rev 2) the frame from the <div class="image"> overlaps the text paragraph above,
A sample code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ops="http://www.idpf.org/2007/ops" xml:lang="en">
<head>
<title>Testdoc</title>
<style type="text/css">
div.rotated { transform: rotate(-90deg); }
div.image { height: 200px; width: 500px; border: solid 1px black; }
</style>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sit amet orci
eros. In hac habitasse platea dictumst. In hac habitasse platea dictumst.
Vivamus fringilla metus ac lacus rutrum dictum. Aliquam erat volutpat. Nunc
placerat, eros et fermentum semper, dui mauris aliquet est, posuere egestas
felis felis quis erat. Proin vel risus eget tortor elementum rhoncus.</p>
<div class="rotated">
<div class="image">
A rotated div.
</div>
</div>
</body>
</html>
In the PDF (Prince 9.0 rev 2) the frame from the <div class="image"> overlaps the text paragraph above,