unioffice
unioffice copied to clipboard
Text watermark does not support settings such as font, size, color,layout, etc,image watermark does not support scaling parameters
Description
Text watermark does not support settings such as font, size, color,layout, etc,image watermark does not support scaling parameters
Expected Behavior
Text watermark support settings such as font, size, color,layout, etc,image watermark support scaling parameters
Actual Behavior
Text watermark does not support settings such as font, size, color,layout, etc,image watermark does not support scaling parameters
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/
Hi @KunLiu1210
Could you share the expected docx results that created through MS Word or similar application and would be better if you could share the runnable code snippet that you use to generate watermark currently.
Best regards, Alip
@KunLiu1210 We have just released UniOffice v.2.0.0 (https://github.com/unidoc/unioffice/releases/tag/v2.0.0), which includes support for text watermark font, opacity, color, and layout (horizontal vs. diagonal). These options are similar to those in MS Word.
Please check the following example for reference:
https://github.com/unidoc/unioffice-examples/blob/master/document/watermark-text/main.go
As for image watermark scaling, we have the function SetPictureSize() which does the scaling, see how to use it here:
https://github.com/unidoc/unioffice-examples/blob/master/document/watermark-picture/main.go
@anovik very nice update!
@KunLiu1210 We have just released UniOffice v.2.0.0 (https://github.com/unidoc/unioffice/releases/tag/v2.0.0), which includes support for text watermark font, opacity, color, and layout (horizontal vs. diagonal). These options are similar to those in MS Word.
Please check the following example for reference:
https://github.com/unidoc/unioffice-examples/blob/master/document/watermark-text/main.go
As for image watermark scaling, we have the function SetPictureSize() which does the scaling, see how to use it here:
https://github.com/unidoc/unioffice-examples/blob/master/document/watermark-picture/main.go