We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot find reference documentation

Hello Aspose,


our customers want to save pdf,doc,docx,rtf,msg,jpg,jpeg,tif,tiff,xls,xlsx,odt,bmp,txt,png,

csv,xlm,wps,xps,odp,pps,ppt,ppsx,pptx

converted to TIFF format and be able to set the following constraints:
  • Image quality on a range from 10-100
  • ImageResolution <o:p></o:p>on a range from 100-600 dpi
  • ImageColor: 24it,8bit,bw,gray
  • TiffCompression: ccittfax3,ccittfax4,jpeg,lzw,none
It’s my task to figure out all the scary details how to achieve that :slight_smile:
Problem: I can only find some basic examples and some - sorry - almost useless javadoc.

Is there some detailed reference documentation e.g. about the TiffOptions class? I’d be very grateful if you gave some pointers!

Thank you!

Regards
cfodev

cfodev:
our customers want to save pdf,doc,docx,rtf,msg,jpg,jpeg,tif,tiff,xls,xlsx,odt,bmp,txt,png,

csv,xlm,wps,xps,odp,pps,ppt,ppsx,pptx
Hi Otto,

Thanks for contacting support.

In order to accomplish your requirement, you need to try using individual file format API.

Aspose.Pdf for Java offers the feature to create as well as manipulate existing PDF files. It also provides the feature to Convert PDF Pages to TIFF Image.

It also provides the feature to load JPEG, JPG, TIFF, TXT, PNG files, place them in side PDF pages and render the output in TIFF format. For further information, please visit


You can also use this API to load XPS file and instead of saving output in PDF format, you may consider calling the routine to save output in TIFF format. For related information, please visit Convert XPS file to PDF format.

We have an API named Aspose.Words for Java which provides the feature to create as well as manipulate MS Word files. It also supports the feature to load DOC, DOCX, ODT, RTF and Save Document as a Multipage TIFF.

You may also consider visiting Aspose.Words File Formats and Conversions.

Aspose.Cells for Java provides the feature to load XLS, XLSX, XLM and CSV files and facilitates to Convert Worksheet to Image. You may consider checking Opening Files.

In order to convert odp,pps,ppt,ppsx,pptx file to TIFF format, please try using Aspose.Slides for Java. For more information, please visit Converting Presentation to TIFF.

In order to save MSG file to TIFF image, first you need to load MSG file using Aspose.Email for Java, save output in MHTML format, load resultant MHTML using Aspose.Words for Java and render the output in TIFF format. Please take a look over following code snippet.

[Java]

FileInputStream fstream=new FileInputStream(emailPath);<o:p></o:p>

com.aspose.email.MailMessage eml = com.aspose.email.MailMessage.load(fstream);

//Save the Message to output stream in MHTML format

ByteArrayOutputStream emlStream = new ByteArrayOutputStream();

eml.save(emlStream, com.aspose.email.SaveOptions.getDefaultMhtml());

//Load the stream in Word document

com.aspose.words.LoadOptions lo = new com.aspose.words.LoadOptions();

lo.setLoadFormat(com.aspose.words.LoadFormat.MHTML);

com.aspose.words.Document doc = new com.aspose.words.Document(new ByteArrayInputStream(emlStream.toByteArray()), lo);

//Save to disc

doc.save(“About
Aspose.Pdf”
, com.aspose.words.SaveFormat.TIFF);


cfodev:
converted to TIFF format and be able to set the following constraints:
  • Image quality on a range from 10-100
  • ImageResolution <o:p></o:p>on a range from 100-600 dpi
  • ImageColor: 24it,8bit,bw,gray
  • TiffCompression: ccittfax3,ccittfax4,jpeg,lzw,none
Each API has specific class to set formatting information for resultant TIFF image. In case you are unable to generate the output in desired configuration, please try using Aspose.Imaging for Java. For more information, please visit Manipulating TIFF Images.

Should you have any further query, please feel free to contact.