unidoc / unipdf-examples

Examples for creating and processing PDF files with UniPDF https://github.com/unidoc/unipdf
https://unidoc.io
261 stars 101 forks source link

How can I add the text to pdf in the watermark way? #252

Open GITHUBblazer opened 1 month ago

GITHUBblazer commented 1 month ago

according to your watermark codes, found that place the image on the pdf is the most ways of achieving the watermark to the pdf, I wonder whether it supports to use the text to watermark the pdf in a different way, eg. I give a number or letter only and .........

ipod4g commented 1 month ago

@GITHUBblazer thank you for reaching out Would you mind elaborating further on what you're aiming to accomplish? Please provide us more details, example or send the expected PDF file would be really helpful and we'll try to assist you with your query.

3ace commented 1 month ago

@GITHUBblazer yes, currently we haven't support adding text watermark directly. So one workaround you could use for now is to construct an image from text and then use that image as watermark image.