When a text box is shaded in the original Word document that shading is not included to the converted TIF file:
I used standard code to convert word to Tif. It works fine, except for some documents where shading is removed. Is there a way to not have the shading removed at the document level, without having to go into each individual paragraph and table object and doing checks/coding there?
Note that the code is not exact below. I copied and pasted from several different functions.
'************************************************************
'Load up document into doc object [which we do through a series of steps]
docExample = …
var imageSaveOptions = new ImageSaveOptions(SaveFormat.Tiff)
{
HorizontalResolution = 300,
VerticalResolution = 300,
PixelFormat = 1,
TiffCompression = [I tried all of the value]
};
foreach (var section in docExample.Sections.Cast())
{
section.PageSetup.Orientation = this.FormProps.WordOrientation;
}
docExample.Save(“C:\SaveToLocation.Tif”, imageSaveOptionsObject)
'************************************************************
Any help will be appreciated.
PS - We also have a problem with black bars or shading (not sure which) being added to document where we don’t want it. See our other query.