How to Render OFT to IMAGE in Andorid Applications
Andorid Apps are easy to use for end users on daily bases. Day by day numbers of Andorid phones users are increasing. Using the powerful Aspose.Total for Android via Java File Format Automation libraries you can develope Email manipulation and convertion applications. You can convert OFT to IMAGE by the combination of Aspose.Email for Android Java & Aspose.Words for Andorid Java . Using the first API you can convert OFT file format to HTML and by using second API, you can render HTML as IMAGE.Convert OFT to IMAGE in Andorid
- Open OFT file using MailMessage class
- Convert OFT to HTML by using save method
- Load HTML by using Document class
- Save the document to PNG format using save method and set PNG as SaveFormat
Get Started with Andorid via Java APIs
You can easily use Aspose.Total for Android via Java directly from Maven and install Aspose.Email for Android via Java and Aspose.Words for Andorid via Java in your applications.
Alternatively, you can get a ZIP file from downloads .
Code for OFT to IMAGE Conversion in Andorid Apps
// load the OFT file to be converted
MailMessage message = MailMessage.load("sourceFile.oft");
// save OFT as a HTML
message.save("HtmlOutput.html", SaveOptions.getDefaultHtml());
// load HTML with an instance of Document
Document document = new Document("HtmlOutput.html");
// call save method while passing SaveFormat.PNG
document.save("output.png", SaveFormat.PNG);
Explore OFT Conversion Options with Android
Convert OFT to BMP
(Bitmap Image File)
Convert OFT to DOC
(Microsoft Word Binary Format)
Convert OFT to DOCM
(Microsoft Word 2007 Marco File)
Convert OFT to DOCX
(Office 2007+ Word Document)
Convert OFT to DOT
(Microsoft Word Template Files)
Convert OFT to DOTM
(Microsoft Word 2007+ Template File)
Convert OFT to DOTX
(Microsoft Word Template File)
Convert OFT to EMF
(Enhanced Metafile Format)
Convert OFT to EPUB
(Open eBook File)
Convert OFT to FLATOPC
(Microsoft Word 2003 WordprocessingML)
Convert OFT to GIF
(Graphical Interchange Format)
Convert OFT to JPEG
(Joint Photographic Expert Group)
Convert OFT to MD
(Markdown Language)
Convert OFT to ODT
(OpenDocument Text File Format)
Convert OFT to OTT
(OpenDocument Template)
Convert OFT to PCL
(Printer Command Language)
Convert OFT to PDF
(Portable Document Format)
Convert OFT to PNG
(Portable Network Graphic)
Convert OFT to PS
(PostScript File)
Convert OFT to RTF
(Rich Text Format)
Convert OFT to SVG
(Scalar Vector Graphics)
Convert OFT to TIFF
(Tagged Image File Format)
Convert OFT to WORD
(WordProcessing File Formats)
Convert OFT to WORDML
(Microsoft Word 2003 WordprocessingML)
Convert OFT to XPS
(XML Paper Specifications)