johnfercher / maroto

A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.
https://maroto.io
MIT License
2.14k stars 206 forks source link

fill background with image #459

Open xanderjakeq opened 4 months ago

xanderjakeq commented 4 months ago

hi, i am trying to add an image as a background both the size of the pdf and image is 8.5 x 11.

why does the background not fill the page? i tried adding top margin to push the image down, but it just makes the img smaller. it seemed like theres a constant bottom margin? and withmargin doesn't have an option for it.

marginTop: 0 image

marginTop: 10 image

is there a way to fix this that i missed?

thanks!

Originally posted by @xanderjakeq in https://github.com/johnfercher/maroto/issues/154#issuecomment-2163701602

Fernando-hub527 commented 3 months ago

hello!! Could you post the code that is generating this behavior?