We encountered a strange thing when going from DOCX directly to TIF.
Only the first page will be converted/saved into the TIF-file.
Version Aspose 20.05, Java 8u201 and the following code
import com.aspose.words.Document;
import com.aspose.words.ImageBinarizationMethod;
import com.aspose.words.ImageColorMode;
import com.aspose.words.ImageSaveOptions;
import com.aspose.words.SaveFormat;
import com.aspose.words.TiffCompression;
Document doc = new com.aspose.words.Document(sourceFile);
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
options.setPageIndex(0);
options.setPageCount(doc.getPageCount());
options.setTiffCompression(TiffCompression.CCITT_4);
options.setImageColorMode(ImageColorMode.GRAYSCALE);
options.setTiffBinarizationMethod(ImageBinarizationMethod.FLOYD_STEINBERG_DITHERING);
options.setThresholdForFloydSteinbergDithering((byte) 128);
doc.save(destFile, options);
I attached the original file and the produced tiff file.
Funfact: If we first create a PDF and then from PDF to TIF it works as expected.GEN_Formular_47121516459242120.zip (162.0 KB)