Using Prince 6r8 in php/centos, I generate a pdf file from the following html.
In looking at the HTML file, you can see that the vertical 'test address' text begins right after the 3 dots. Also, the horizontal 'test address' text is located right near the top of the document.
Then you look at the PDF file generated. The horizontal text is spaced down about the height of the text, and the vertical text is moved to the right about the same, the width of the text.
Quite a difference between the two. Is the CSS style not being properly applied, not sure.
Thanks
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@page
{
size: 9.25in 3.75in;
margin: 0in;
prince-image-resolution: 300dpi;
prince-shrink-to-fit: auto;
}
img { max-width: none }
</style>
</head>
<body><div id="page1" style="position: relative; width: 925px; height: 375px; border:1px solid black;"><svg style="position: absolute; left:310px; top:4px;z-index:13; width:300px; height:100px;"><text fill="#000" transform="rotate(0 0,0)" x="0" y="30" style="font-family:Helvetica Thin;font-size:42px;">Test address ...</text></svg><svg style="position: absolute; left:510px; top:4px;z-index:13; width:300px; height:300px"><text fill="#000" transform="rotate(90 30,30)" text-anchor="start" x="0" y="0" style="font-size:42px;">Test address ...</text></svg></div>
</body></html>
In looking at the HTML file, you can see that the vertical 'test address' text begins right after the 3 dots. Also, the horizontal 'test address' text is located right near the top of the document.
Then you look at the PDF file generated. The horizontal text is spaced down about the height of the text, and the vertical text is moved to the right about the same, the width of the text.
Quite a difference between the two. Is the CSS style not being properly applied, not sure.
Thanks