We are currently evaluating Prince for PDF generation of a given Website built in XHTML and CSS and I came across 2 problems (I split the question in 2 posts, hope that is ok).
Problem 1:
We need to put a background image (a logo) on each page. In the HTML this is simply done with
For the PDF each page should have this logo and as a single HTML may span over several PDF pages I tried:
Sadly prince does not acknowledge the complete background definition but the image only ignoring "no-repeat". This results in the logo being tiled over the complete page...
A workaround in this case was to use an A4 size background image but that should not be this way I guess. Is this behaviour a bug or a feature?
I am using PrinceXML 6.0r3 on Windows XP.
Thanks a lot!
Problem 1:
We need to put a background image (a logo) on each page. In the HTML this is simply done with
body {
background: #fff url(/images/logo.png) no-repeat right top;
}
For the PDF each page should have this logo and as a single HTML may span over several PDF pages I tried:
@page {
size: A4 landscape;
background: #fff url(/images/logo.png) no-repeat top right;
}
Sadly prince does not acknowledge the complete background definition but the image only ignoring "no-repeat". This results in the logo being tiled over the complete page...
A workaround in this case was to use an A4 size background image but that should not be this way I guess. Is this behaviour a bug or a feature?
I am using PrinceXML 6.0r3 on Windows XP.
Thanks a lot!