Hi,
I am using aspose.word kit.In my word document its containing text and images.But images are not black and white,it is color so what all properties I need to set.Now tiff file is not creating clear images.So what I need to do.Below I displayed code please tell me.What I sholud do for clear color image generate in tiff file.
String file=“TestFile5.doc”;
String dataDir1=“D:”+"\"+“test”+"\";
System.out.println(“dataDir1”+dataDir1);
Document doc = new Document(dataDir1+file);
doc.getPageCount();
System.out.println(“doc.getPageCount();------->”+doc.getPageCount());
//Create an ImageSaveOptions object to pass to the Save method
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
options.setTiffCompression(TiffCompression.CCITT_4);
options.setResolution(400);
doc.save(dataDir1 + “TestFileWithOptionsOut.tiff”, options);
Hi Awais,
I attached file please check.And what all properties I need to set.
Thanks
svn
Hi Shilpa,
Document doc = new Document(“C:\Temp\testdocumentwithimages.docx”);ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
options.setTiffCompression(TiffCompression.NONE);doc.save(“C:\Temp\out.tiff”, options);
The issues you have found earlier (filed as WORDSJAVA-670) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.