unioffice icon indicating copy to clipboard operation
unioffice copied to clipboard

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

Open KunLiu1210 opened this issue 1 year ago • 2 comments

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

KunLiu1210 avatar Aug 23 '24 08:08 KunLiu1210

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/

github-actions[bot] avatar Aug 23 '24 08:08 github-actions[bot]

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

sampila avatar Aug 23 '24 10:08 sampila

@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 avatar Feb 03 '25 07:02 anovik

@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

KunLiu1210 avatar Feb 13 '25 08:02 KunLiu1210