php - Generate a PDF with background image without margin -


i want generate pdf dompdf tool in codeigniter.

i have image , want display in background full din a4 pdf page, when try this:

body{   background-image: url('http://blogs.ucl.ac.uk/quantum/files/2013/12/artwork-fullsize.jpg'); background-position: bottom right; background-repeat: no-repeat;    background-size: 100%;   width:100%;   height:100%;   padding: 0px;   margin: 0px; } 

i have pdf appear margin (or padding). want without margin or padding, full 100% image background.

thank you,

i stumbled upon problem long time ago. did make page no margins.

<style>@page{margin:0}</style> 

Comments