Worddocument to Tiff convertion

Hi,

I used aspose library for conversion wordDocment to Tiff convertion .I used code like this
for java to convert all doc. page to tiff,some of document it is converting but some of document its taking olny 5 pages, please tell me any restriction is their in aspose.What i should use for page tiff convertion

Document doc = new Document(filePath1 +fileName1);
int totalPages=doc.getPageCount();

try{
System.out.println(“doc.getPageCount();------->”+doc.getPageCount());

for(int j=0;j<totalPages;j++){
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.TIFF);
options.setPageIndex(j);
options.setPageCount(1);
options.setTiffCompression(TiffCompression.CCITT_4);
options.setResolution(160);

doc.save(filePath1 +subjectCode+""+setNo+""+rollNo+"_page"+(j+1)+".tiff", options);







Thanks

svn

Hi Shilpa,


Thanks for your inquiry. In case you’re simply rendering Word document to Tiff format, I would suggest you please try the following two liner code:
Document doc = new Document(“C:\Temp\in.docx”);
doc.save(“C:\Temp\out.tiff”);
I hope, this helps.

Best Regards,