In header-template background-image-url not loading
Opened this issue · 1 comments
iteron-yasir commented
This is my pdf create command. But, the image was not loading
chrome-headless-render-pdf --url file:///tmp/example.html --pdf test.pdf --display-header-footer --header-template '<style type="text/css">
.header {
background-image: url("https://homepages.cae.wisc.edu/~ece533/images/airplane.png")
background-size: cover;
height: 500px;
width: 100%;
}
</style>
zigm commented
I tried also but image loading doesn't seem to work. However, this is likely Chrome browser problem. The chrome-headless-render-pdf.js just passes user defined header and footer to Chrome.
Attached the bash script. Pasting the text didn't work properly.