Java Word Documents Manipulation APIs
Create, Process, Convert and Render Word files to multiple formats without any Microsoft Word dependencies within any Java-based application.Download Free Trial
Aspose.Words for Java
Aspose.Words for Java is a feature-rich Word processing API. It allows the developers to embed the ability to generate, modify, convert, render and print documents in their own Java applications without using Microsoft Word API provides the capabilities to access and manipulate formatting properties of all document elements, high-quality conversions of multiple formats, rendering individual pages or complete documents to different file formats, generating reports with data from various data sources or business objects and much more.
Aspose.Words for Java supports all the popular Word Processing file formats. It also allows to export or convert Word documents to fixed-layout formats and most commonly used image/multimedia formats.
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 following document 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
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
Bookmarks are Allowed on Block, Cell, Row Levels
Convert EquationXML to Office Math
Nested Reports are Supported by LINQ Reporting Engine
Create Snip Corner Rectangle
Save the resources of MHTML document using the "Content-Id" URL Scheme
Show or Hide Comments in Fixed File Format
Show Revisions in Balloons
Write all CSS Declarations of HtmlFixed Documents into Single File
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 document = new Document(dir + "template.doc"); // save in different formats document.save(dir + "output.docx", SaveFormat.DOCX); document.save(dir + "output.pdf", SaveFormat.PDF); document.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.
Join 2 documents - Java
// load source & destination documents Document srcDoc = new Document(dir + "source.docx"); Document dstDoc = new Document(dir + "destination.docx"); // set the appended document to start from a new page srcDoc.getFirstSection().getPageSetup().setSectionStart(SectionStart.NEW_PAGE); // append the source document using its original styles dstDoc.appendDocument(srcDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING); // save final result dstDoc.save(dir + "output.docx");
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.
What People Are Saying
Don't just take our word for it. See what users have to say about Aspose.Words APIs.
With Aspose.Words, we increased efficiency at the organizational processes because we reduce the time spent in technical support activities. Now we can say that we are only focused on our core business.Paulo Lopes | Xpand IT, UK
Working with Aspose.Words has been a very satisfying and easy to implement solution. One of the best features being the quick time in which large documents are generated.Tom Daniels | Pill Creek Publishing, UK
Aspose.Words has saved us a lot of time, effort and money. It’s given our customers good reliable import/export functionality so they can open their old document in WriteOnline.Andrew Burt | Crick Software Ltd, USA