I want to add to header/footer of pdf image.
I'm using @page.
When I'm using a static url it's working, but when I try to use variable for it, it's not.
Also, I'd like to modify the size of it because the picture way bigger then I want.
This is my code:
@top-left {
<% if params[:hl] == 'logo' %>
content: <%= url(current_account.picture.url) %>;
margin: 0;
<% end %>
}
I'm using @page.
When I'm using a static url it's working, but when I try to use variable for it, it's not.
Also, I'd like to modify the size of it because the picture way bigger then I want.
This is my code:
@top-left {
<% if params[:hl] == 'logo' %>
content: <%= url(current_account.picture.url) %>;
margin: 0;
<% end %>
}