PDF Cover Image
Posted: Mon Jan 07, 2019 9:01 pm
I'm trying to add an image to the cover of PDF output. I've followed the instructions in the https://www.oxygenxml.com/doc/versions/ ... aid-title4 topic, have added the background-image setting to the @page front-page parameter in my custom CSS, but it's not working. I've been perusing the default p-front-page.css stylesheet to see if there's anything I'm missing, but can't find anything so far. Here's my current, custom code:
@page front-page {
size: letter;
margin-top: 1in;
background-image: url('../img/AWS_logo_RGB_letter-cover.svg');
background-repeat: no-repeat;
background-position: center;
}
Among a variety of other options, I've also tried this:
*[class~="front-page/front-page"] {
page: front-page;
}
@page front-page {
@top-center { content: url('../img/AWS_logo_RGB_letter-cover.png'); }
}
which didn't work either.
Any ideas?
@page front-page {
size: letter;
margin-top: 1in;
background-image: url('../img/AWS_logo_RGB_letter-cover.svg');
background-repeat: no-repeat;
background-position: center;
}
Among a variety of other options, I've also tried this:
*[class~="front-page/front-page"] {
page: front-page;
}
@page front-page {
@top-center { content: url('../img/AWS_logo_RGB_letter-cover.png'); }
}
which didn't work either.
Any ideas?