Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Wed Jan 26, 2011 3:13 am


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 :P

Posts: 4
Joined: Tue Dec 28, 2010 1:13 am

Wed Jan 26, 2011 9:24 am

Thank you for your inquiry! :P
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:

The background color will be remained in PDF.
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc