Hello,
I have added a background image to my PDF Exports by modifying the @pageCSS element on the PDF Stylesheet as follows:
- @page
- {
- /*A4-sized pages in landscape orientation are 297 mm wide by 210 mm long*/
- size: 297mm 210mm;
- background-image: url('image1.jpg');
The image is a bit bigger than the page size, so I'd like to resize it to scale to the size of the page. I tried adding
background-size: contain;
But this did not have an effect.