Szpadel / chrome-headless-render-pdf

225 stars 67 forks source link

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

Open iteron-yasir opened 3 years ago

iteron-yasir commented 3 years ago

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 '

'
zigm commented 3 years ago

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