This package contains Java Example Projects for Aspose.Words for Java.
Aspose.Words for Java is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate,
modify, convert, render and print documents without utilizing Microsoft Word.
Using Aspose.Words for Java in your project gives you the following benefits:
These example projects provide helpful demonstrations and code when using Aspose.Words for Java.
- You will need to
download Aspose.Words for Java separately and it will work in evaluation mode.
- Aspose.Words for Java is not free and not an open source product. It will need to be purchased if you intend to develop with it.
Aspose.Words for Java at a Glance
Open Source Feel of Aspose.Words
Aspose.Words for .NET and Aspose.Words for Java are successful commercial products, but our philosophy is to develop them using our unique
"open-source feel" approach. In other words, we at Aspose are extremely customer driven and this shows in:
- Frequent releases (at least 1-2 a month).
- Features are prioritized according to your requests.
- Unlimited free technical support for anyone.
- Helpful support in the forums and answers within 12-24 hours.
- Live chat with experienced technical advisers.
We think that customers who use our products feel that they use an open source product because of the extent they can influence the project, but with the security of a fully committed talented team working on the project.
The Aspose.Words for Java examples published here at CodePlex is a part of the above effort.
What's Included in the Examples?
All examples are contained in separate folders at the root of the repository. Each example contains a Program.java file which always contains the main entry point for the application.
The general structure of each example contains:
- IntelliJ Project files (.ipr, .iml, .iws)
- Program.java (the source code for the example).
- Data folder which contains the input documents and any source files. All generated output produced by the example is also placed into this folder.
- Out folder (created when the example is compiled and contains the compiled classes when the project is built).
||Demonstrates how to add a watermark to a Microsoft Word document.
||Shows how to join two Word documents together and control how they are joined.
||Shows how to remove empty regions from a document after mail merge using custom logic
||Demonstrates how to use the AutoFit function to fit tables to the page width or to content.
||Shows how to use FileFormatUtil to check input file formats and if they are supported by Aspose.Words.
||Compresses all images in a document that are above the specified PPI.
||Extracts text from a bookmarked range and shows how to import it into a new document.
||Demonstrates loading and saving a document into a Microsoft Access Database for use in Aspose.Words.
||Shows how to preview and print an Aspose.Words Document with a standard .NET Print Preview dialog.
||Contains numerous small but fully working code snippets that are used within the documentation.
||Demonstrates interoperability between Aspose.Words and Aspose.Cells by importing a worksheet into a word document.
||Provides code to extract fully formatted content from a document between selected nodes.
||Extracts content from a document based on styles.
||Finds and highlights all instances of specified text in a document.
||Saves a document as a TIFF image using different compression settings.
||Shows how to convert any common input image formats such as JPEG, PNG, TIFF and WMF to PDF.
||Shows how to round trip footnotes by providing code which imports footnotes from HTML.
||Shows how to build a table in a Word document automatically from a .NET DataTable.
||Shows how to use LINQ and mail merge functionality to easily merge data into a document.
||Demonstrates how to import a .txt file into a new Aspose.Words Document.
||Shows how to insert checkboxes and form fields during mail merge.
||Produces a new document for every record generated during mail merge.
||Provides code to print multiple pages from a Word document onto one sheet of paper.
||Shows how to easily merge data directly from a relational data source into a document by using Nested Mail Merge.
||Prints information about the markup comments found in a input Word document.
||Demonstrates how to remove page and section breaks from a document loaded into Aspose.Words.
||Shows how to easily remove mail merge regions from a document that were not merged with data.
||Provides code to automatically convert all fields of a certain type to plain text (Ctrl+Shift+F9 in Word).
||Shows how to save a document with many pages into a multi-paged TIFF image.
||Demonstrates converting a document to HTML for use in e-mail with the .NET Email API.
||Shows how to use Aspose.Words to convert a document to MHTML and then e-mail using Aspose.Email for .NET
||Exports a word document into separate HTML articles based on heading styles.
||Demonstrates how to fix bookmarks if they are incorrectly loaded in table rows.
||Expands on the SplitIntoHtmlPages example by producing fully named HTML articles from the source Word document.
||Shows how to perform mail merge from an XML datasource.
- Input Documents - Each example contains a Data directory which contains any input Word Documents used in the example.
- Northwind.mdb - Many examples use this Microsoft Access Database found under the "Database" directory for demonstrating merging data into documents.
- Most examples will perform operations on documents and save them into the Data directory. This directory is found inside each of the examples e.g "(ExampleName)\Java\Data\".
- Other examples print output to the console.
- Some printing examples will display a print preview dialog and allow you to print the document output.
Download the Examples
Please Download the Aspose.Words for Java Examples to try them at your end.
How to use the Examples?
See Aspose.Words for Java Documentation
Support and Contribution
Feel free to comment on the samples provided, open issues, discussions and request more samples. We provide full support for this project.
You can contribute by reviewing and sending feedback by trying out new features as they are implemented, submit bugs reports and help us verify fixes as they are released.
What to do if I encounter a Problem or a Bug?
We provide full technical support to everyone, regardless of whether they have purchased a license, or are just evaluating the product. Please post a message on the Aspose.Words forum with a description of your issue and any input document/code.
We will reply within 12-24 hours with some helpful feedback.
We fix all bugs reported to us and try to implement all features requested by customers. To submit a bug report or for any general inquries, please post a message in the Aspose.Words