Java APIs to manipulate Word documents
Create, edit, convert or print Word documents (20+ file formats) from any Java based application.Download Free Trial
Aspose.Words for Java
Aspose.Words for Java is an advanced Java Word processing API that enables you to perform a great range of document processing tasks directly within your Java applications.
Aspose.Words for Java API supports processing word (DOC, DOCX, OOXML, RTF) HTML, OpenDocument, PDF, EPUB, XPS and most commonly used image formats. With Aspose.Words you can generate, modify, and convert documents without requiring Microsoft Word.
At A Glance
Some of the advanced capabilities of Aspose.Words for Java.
- Business Objects
- LINQ Reporting Engine
- PNG, JPEG, BMP, GIF
- XPS, OpenXPS
- PDF, PDF/A-1b, PDF/A-1b
- PostScript (PS)
- XamlFixed, XamlFlow or XamlFlowPack
Aspose.Words for Java fully supports the Java based applications developed in Windows Unix/Linux and Mac platforms.
- JSP/JSF Application
- Desktop Application
Supported File Formats
Aspose.Words for Java supports all the popular Word Processing file formats. It also allows exporting or converting Word documents to fixed-layout formats and most commonly used image/multimedia formats.
- Microsoft Word: DOC, DOCX, RTF, DOT, DOTX, DOTM, DOCM FlatOPC, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled
- OpenOffice: ODT, OTT
- WordprocessingML: XML
- Web: HTML, MHTML
- Text: TXT
- Fixed Layout: PDF, PDF/A, XPS, OpenXPS, PostScript (PS)
- Graphics: TIFF, JPEG, PNG, BMP, SVG, EMF, GIF
- Web: HtmlFixed
- Others: PCL, EPUB, XamlFixed, XamlFlow, XamlFlowPack
Advanced Java Word Document Processing API Features
Perform mail merge & generate reports
Insert formatted text, paragraphs, images and tables
Populate tables using data retrieved from database
Create mailing labels
Move sections between documents
Mail merge data from multiple tables
Insert watermark to document
Format date and numeric fields during mail merge
Join and split documents
Load encrypted documents
Find and replace text, enumerate over document content
Preserve or extract OLE objects and ActiveX controls
Preserve or remove VBA macros
Preserve VBA macros' digital signature
Detect digital signatures
Insert HTML contents
Interconvert document format
Support for Industry Standard Document Formats
Aspose.Words for Java supports many popular document formats. The distinct advantage of Aspose.Words is the great extent to which it supports the DOC format. It is incredibly hard to find another technology that has the same level of support for many important DOC features other than in Microsoft Word itself. Aspose.Words also provides extensive support for loading, saving and converting WordprocessingML, RTF & ODT documents.
Quick & Reliable Conversion of Popular File Formats
The ability to quickly and reliably convert different document formats with a high degree of precision is the reason most of our customers choose Aspose.Words. The API allows you to convert documents from any supported format to any other supported format with just two lines of code. It is really that simple!
Save document in different formats - Java
// load the file to be converted Document doc = new Document(dir + "template.doc"); // save in different formats doc.save(dir + "output.docx", SaveFormat.DOCX); doc.save(dir + "output.pdf", SaveFormat.PDF); doc.save(dir + "output.html", SaveFormat.HTML);
Reporting & Mail Merge Features
You can use Aspose.Words for Java as a fully featured reporting solution. You can design reports in Microsoft Word and then allow Aspose.Words for Java to populate documents with data from a number of data sources, keeping the mail merge setting preserved. Aspose.Words for Java allows developers to use standard Microsoft Word mail merge fields in reports. Additionally, you can use the Aspose.Words for Java extended syntax for mail merge fields to perform more complex tasks during the mail merge operations such as inserting images or repeatable regions.The data to drive your reports or mail merges can come from ResultSet objects, business objects or from a completely custom data source.
Programming with Document Object Model
Aspose.Words for Java API allows developers to create, build, modify, parse and examine loaded documents using our intuitive document object model that consists of over 100 classes. This object model allows the developers to programmatically create, modify, extract and replace all document elements including Sections, Headers, Footers, Paragraphs, Lists, Tables, Text, Fields, Hyperlinks, Bookmarks, Images, Smart tags, Shapes, Custom XML and many other document elements.
Furthermore, all drawing objects including shapes, TextBoxes, images, OLE objects and controls are supported through this document object model, thus allowing you to perform many tasks such as inserting watermarks in pages or extracting images from a pre-existing document.
Load & Save HTML Formats
Aspose.Words for Java can load & save HTML and XHTML files. Import process is resilient to documents that are not well formed, that is; invalid or unrecognized elements or attributes can safely be ignored during the import. Conversion to HTML & XHTML is highly customizable thus allowing you to adjust a number of settings to suit the application requirements.
Aspose.Words for Java API also provides useful utility features such as joining or splitting documents, copying fragments between documents, protecting and un-protecting documents, modifying document properties and inserting HTML fragments into documents.
Microsoft Office Automation - Not Needed
Aspose.Words for Java is built using managed code that does not need Microsoft Office or Microsoft Word to be installed on the machine to work with Word document formats. It is a perfect Microsoft Word automation alternative in terms of supported features, security, stability, scalability, speed and price.