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 May 23, 2018 2:04 pm

Good afternoon,

My case is very simple, I have a .doc file containing a watermark, when I convert this file to .pdf my watermark loses its transparency effect.

I saw that you could create your own watermark and then import it into the file but this solution does not help me.

I would like to know if it is possible to modify the transparency of my existing watermark and if so, how?

Thank you for your attention.

Alcorps
 
Posts: 1
Joined: Wed May 23, 2018 1:58 pm

Thu May 24, 2018 7:50 am

Hello,

Thanks for your post.
I have tested a Word which contains a semitransparent watermark with the latest version(Spire.Doc Pack(hot fix) Version:6.5.10), and the transparency effect did not lost. In addition, i suggest you use the ps method which gives a better effect to convert Word to PDF.
Code: Select all
Document document = new Document();
document.LoadFromFile("test.docx");
var ps = new ToPdfParameterList
{
    UsePSCoversion = true
};           
document.SaveToFile("test.PDF", ps);

If the issue still exists, please share your input file.
What's more, our Spire.Doc supports setting the transparency of watermark for Word. Please refer to the below code.
1.set the transparency of the picture watermark.
Code: Select all
picture.IsWashout = true;

2.set the transparency of the text watermark.
Code: Select all
txtWatermark.Semitransparent = true;


Sincerely,
Wade
E-iceblue support team
User avatar

Wade.shao
 
Posts: 32
Joined: Thu Mar 22, 2018 8:23 am

Tue May 29, 2018 8:53 am

Hello Alcorps,

How is the issue now?
Your feedback would be greatly appreciated.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.Doc