Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Sep 25, 2024 6:05 am

Hi,
I'm trying to create a word doc with a background image, image behaves as two column display, however, we would like to set it as no repeat (as water mark), is there a property we can set for background image as no repeat (as zooming in/out changes the background image)?

doc.getBackground().setType(BackgroundType.Picture);
doc.getBackground().setPicture(inputStream);

Shs_user
 
Posts: 2
Joined: Wed Sep 25, 2024 5:20 am

Wed Sep 25, 2024 7:07 am

Instead of background image, PictureWatermark works for us

PictureWatermark picture = new PictureWatermark();
picture.setPicture(targetStream);
picture.setScaling(120);
picture.isWashout(false);

Shs_user
 
Posts: 2
Joined: Wed Sep 25, 2024 5:20 am

Wed Sep 25, 2024 8:09 am

Hello,

Thanks for your inquiry. We're very pleased to hear that your issue has been resolved. Spire.Doc supports adding image watermarks and background images to Word document, and you can refer to this article to add watermarks. Your sharing of this experience will also be helpful to other customers, and we express our sincere gratitude for that.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 306
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.Doc