johnfercher / maroto

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

Watermark support #441

Open abhayarawal opened 1 month ago

abhayarawal commented 1 month ago

Is your feature request related to a problem? Please describe. The background image feature lets you add a quasi-watermark, but all content in the PDF is rendered on top of it. It's fine when your PDF only has text; however, when you have PDFs with images, the watermark gets cut off because the images are rendered on top of the background.

Describe the solution you'd like A way to add overlays or watermark would be great.

johnfercher commented 1 month ago

I don´t get it. Could you provide an example? Did you saw this example?

abhayarawal commented 1 month ago

Sure, here's an example

image

here, the watermark is a background image. Since all the pdf contents are rendered on top of the background, the watermark gets cut off by the image. I want the watermark to appear on top of the document so it covers everything.

johnfercher commented 1 month ago

Oh I see, thank you. Maybe we can use this https://github.com/jung-kurt/gofpdf/issues/240