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

Background image not showing in pdf #64

Closed
scottolsen opened this issue Nov 22, 2011 · 1 comment
Closed

Background image not showing in pdf #64

scottolsen opened this issue Nov 22, 2011 · 1 comment

Comments

@scottolsen
Copy link

I need a background image for one of my pdfs but it doesn't show when I generate it. I'm guessing wicked_pdf doesn't know where to look for the image?? I currently have it in public/images. Any thoughts?

@unixmonkey
Copy link
Collaborator

You'll need to either use a full-path url, or a file reference like so:

background-image: url(http://yoursite.com/images/background.jpg);
or
background-image: url(file:///users/scottolson/code/mysite/public/images/background.jpg);

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