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 Jan 26, 2011 3:13 am
Hi,
I want to transfer my Doc file into PDF format. The problem is, the Doc file has a background color which i want to remain
in the transferred PDF format. Can you help me?
Thanks
-
rick.ben15
-
- Posts: 4
- Joined: Tue Dec 28, 2010 1:13 am
Wed Jan 26, 2011 9:24 am
Thank you for your inquiry!
You may use the following code to set the background color of the word document:
- Code: Select all
document.Background.Type = BackgroundType.Color;
document.Background.Color = Color.Blue;
And then, you may save it to PDF format:
document.SaveToFile("Sample.pdf",FileFormat.PDF);
The background color will be remained in PDF.
e-iceblue support
-
iceblue support
-
- Posts: 240
- Joined: Tue Dec 21, 2010 2:56 am