Aspose.Words  for Android via Java

Word Document Processing Android APIs

Generate, Manipulate, Convert and Render documents from within Android apps without depending upon Microsoft Word.

  Download Free Trial

Aspose.Words for Android via Java is a document processing API enabling you to perform document manipulation tasks directly within your Android applications. API allows you to easily create, manipulate, convert and render Microsoft Word files.

Aspose.Words for Android via Java supports processing native formats such as DOC, DOCX, OOXML, TXT, RTF as well as many other commonly used formats such as HTML, OpenDocument ODT, PDF, EPUB, XPS and image formats such as JPEG, PNG, SVG and EMF.

Advanced Android Word Processing API Features

Inter-convert file formats

Create Word files from scratch

Modify, convert and render documents

Generate & modify Word tables, rows and cells

Create & modify bookmarks

Create & update Word fields

Find & replace text

Format tables & cells

Format Paragraphs

Mail merge and reporting

Join & append documents

Render documents to images & fixed-layout formats

File Formats Conversion

The ability to quickly and reliably convert different files with a high degree of precision is the reason most of our customers choose the  API. Android Microsoft Word API allows you to convert files from any supported format to any other supported format e.g convert any document to SWF with high fidelity and the generated SWF contains the document pages and an embedded viewer allowing the document to be viewed on any device. Developers can easily convert formats using just two lines of code.

Save document in different formats - Java

// load the file to be converted

Document doc = new Document(SD_PATH + "template.doc");

// Convert DOC to DOCX, PDF and HTML + "output.docx", SaveFormat.DOCX); + "output.pdf", SaveFormat.PDF); + "output.html", SaveFormat.HTML);

Support for OOXML, Flat OPC and Word 2003 XML

This library provides extensive support for loading, viewing, saving and converting WordprocessingML files. Such comprehensive implementation is possible because API designed with the structure of Microsoft Word documents in mind (and WordprocessingML is known to mimic the internal representation of Microsoft Word files) thus making it simple for us to include support for these implementations into our core product engine.

Load & Save HTML Formats

Android Word APIs' HTML and XHTML import is resilient to documents that are not well-formed. Invalid or unrecognized elements or attributes are safely ignored during the import process whereas the conversion to HTML and XHTML formats is customizable. Many parameters like the export of document properties, headers and footers, image locations, scaling and resolution, form field export options and others can all be specified.

Manipulation with Document Object Model

Android document library allows developers to create, build and modify files - including formatting with an intuitive document object model that consists of over 100 classes.

Android developers can programmatically create, modify, extract and replace all elements including sections, headers, footers, paragraphs, lists, tables, text, fields, hyperlinks, bookmarks, and images. The API also allows specifying detailed formatting for drawing objects including shapes, text boxes, images, OLE objects, and controls.

Reporting & Mail Merge

You can use Android Microsoft Word API as a fully-featured reporting solution. Design reports in Microsoft Word and then allow API to populate documents with data from various sources.

API allows developers to use standard Microsoft Word mail merge fields in reports. Additionally, you can use APIs' extended syntax for mail merge fields to perform more complex operations during mail merge operations such as inserting images or repeatable regions. The data that drives your reports and mail merges can come from ResultSet objects, business objects or from a completely custom data source.


Support and Learning Resources