How to change all pages background color in pdf
-
Hello all,
Hope you are doing well!
I want to change background color of the all pages I tried to apply it on html and body but I causing issue while using page margin.
The portion of page margin is not taking the background color.
For example: I am using @page{ margin: 70px; } in css so whenever I'm applying background color it is not applying on 70px portion from all sides due to page margin.Can anyone help me with this?
Thanks!
-
I used pdf utils to achieve what you require
https://playground.jsreport.net/w/anon/rlH5OQ0eI believe there is a css based solution, but I wasn't able to figure it out. Maybe @bjrmatos have an idea?
-
hmm i can not also figure it out a css only solution, maybe it can not be done because using @page margin is dealing with space outside the html, css context.
-
Thank you @jan_blaha
Thank you @bjrmatos