Details restated below.
I’m using aspose (Words 18.10.0.0) to save a word document to a tif file (must be ccit3) with the code below.
I’m attaching a zip file with the original word document and the resultant tif file. You’ll notice that on page 1 and 2, the bottom of the pages have been dropped and don’t appear to be even picked up on the next pages.
I attached a png in the zip to highlight the issue on the first page.
Issue11-Original.zip (535.4 KB)
Code used Below
float HorizDpi = 170;
float VetDpi = 170;
Aspose.Words.Saving.ImageSaveOptions options = null;
options = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Tiff);
options.TiffCompression = Aspose.Words.Saving.TiffCompression.Ccitt3;
options.PageIndex = 0;
options.PageCount = 1;
options.ImageColorMode = Aspose.Words.Saving.ImageColorMode.Grayscale;
options.PixelFormat = Aspose.Words.Saving.ImagePixelFormat.Format32BppArgb;
options.ImageContrast = (float)0.5;
options.ImageBrightness = (float)0.5;
options.HorizontalResolution = HorizDpi;
options.VerticalResolution = VetDpi;
//options.TiffBinarizationMethod = Aspose.Words.Saving.ImageBinarizationMethod.FloydSteinbergDithering;
options.TiffBinarizationMethod = Aspose.Words.Saving.ImageBinarizationMethod.Threshold;
options.UseGdiEmfRenderer = true;
options.GraphicsQualityOptions = new Aspose.Words.Saving.GraphicsQualityOptions();
options.GraphicsQualityOptions.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver;
Aspose.Words.License wordsLicense = new Aspose.Words.License();
wordsLicense.SetLicense(@"C:\Kit\Build\GENI\Vendors\Aspose\License\Aspose.Total.lic");
Aspose.Words.Document document = new Aspose.Words.Document(file);
string outputPath = Path.GetDirectoryName(file) + outputFolder + Path.GetFileNameWithoutExtension(file) + ".tif";
document.Save(outputPath, options);