Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In header-template background-image-url not loading #72

Open
iteron-yasir opened this issue Apr 19, 2021 · 1 comment
Open

In header-template background-image-url not loading #72

iteron-yasir opened this issue Apr 19, 2021 · 1 comment

Comments

@iteron-yasir
Copy link

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
Copy link

zigm commented May 5, 2021

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.

example.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants