Hi,
Hi Adrien,
Thanks for contacting support.
Aspose.Words for .NET supports the feature to convert DOC file directly to TIFF image format. For further details, please visit How to Save Document as a Multipage TIFF
Besides this, Aspose.Pdf for .NET also supports the feature to directly render the pages of PDF file to TIFF format. For more information, please visit Convert all PDF pages to single TIFF Image.
Thank you for your answer,
Hi Adrien,
//open document<o:p></o:p>
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("c:/pdftest/NoAnnotation_FastWeb.pdf");
// create stream object to save the output image
java.io.OutputStream imageStream = new java.io.FileOutputStream("c:/pdftest/NoAnnotation_FastWeb.tiff");
//create TIFF device with specified attributes
//create Resolution object
com.aspose.pdf.Resolution resolution = new com.aspose.pdf.Resolution(300);
//create TIFFDevice object where second argument indicates the quality of resultant image
com.aspose.pdf.TiffDevice tiffDevice = new com.aspose.pdf.TiffDevice(resolution);
//convert a particular page and save the image to stream
tiffDevice.process(pdfDocument, imageStream);
//close the stream
OK, this works for the word document. Thank you.
MrAd:But when I try with the PDF document I get this exception :class com.aspose.ms.System.M: The method or operation is not implemented.com.aspose.pdf.engine.h.b.c.e.a(Unknown Source)com.aspose.pdf.TiffDevice.processInternal(Unknown Source)com.aspose.pdf.DocumentDevice.a(Unknown Source)com.aspose.pdf.DocumentDevice.process(Unknown Source)
MrAd:Otherwise, I try to convert an excel document to a TIFF image (I use this code: http://www.aspose.com/docs/display/cellsjava/Converting+Worksheet+to+Image) but I get this exception :java.lang.Error: java.lang.NoClassDefFoundError: com/sun/media/imageio/plugins/tiff/TIFFImageWriteParamDo you have solutions ?
MrAd:Otherwise, I try to convert an excel document to a TIFF image (I use this code: http://www.aspose.com/docs/display/cellsjava/Converting+Worksheet+to+Image) but I get this exception :java.lang.Error: java.lang.NoClassDefFoundError: com/sun/media/imageio/plugins/tiff/TIFFImageWriteParamDo you have solutions ?
Hi,
Thanks for your posting and using Aspose.Cells for Java.
To convert a worksheet to a TIFF image, add the JAI library to your class path and see if it resolves your issue.
Please also download and try the latest version: Aspose.Cells for Java v7.5.0.5.
If the problem still occurs, then please provide us your source MS-Excel file which you are converting to tiff image. We will look into it and help you asap.
Hi,