Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text watermark does not support settings such as font, size, color,layout, etc,image watermark does not support scaling parameters #519

Closed
KunLiu1210 opened this issue Aug 23, 2024 · 4 comments

Comments

@KunLiu1210
Copy link

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

Copy link

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/

@sampila
Copy link
Collaborator

sampila commented Aug 23, 2024

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

@anovik
Copy link

anovik commented Feb 3, 2025

@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 anovik closed this as completed Feb 3, 2025
@KunLiu1210
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants