QuestPDF / QuestPDF-ExampleInvoice

MIT License
267 stars 28 forks source link

How can I create a watermark image at the center of the page #1

Closed hoba-dafidi closed 2 years ago

hoba-dafidi commented 2 years ago

I have been trying to make a watermark, but never success. Is there any way to go about it?

MarcinZiabek commented 2 years ago

Hello! Please try the Layers element that allows drawing additional stuff behind and on top of the main content. A simple example can be found here 😁

MarcinZiabek commented 2 years ago

The QuestPDF 2022.03 provides additional API methods to implement watermark on entire page. Please take a look here.

hoba-dafidi commented 2 years ago

Hello Marcin, Thank you for this update. It really means alot to me.

David

On Wed, Mar 30, 2022 at 12:37 AM Marcin Ziąbek @.***> wrote:

The QuestPDF 2022.03 provides additional API methods to implement watermark on entire page. Please take a look here https://www.questpdf.com/documentation/api-reference.html#watermark-slots .

— Reply to this email directly, view it on GitHub https://github.com/QuestPDF/QuestPDF-ExampleInvoice/issues/1#issuecomment-1082469827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4OU6GZF2QKV5VXWB7H4STVCOH5LANCNFSM5M3HFXSA . You are receiving this because you authored the thread.Message ID: @.***>

MarcinZiabek commented 2 years ago

That's great! Closing 😁