Giter Site home page Giter Site logo

reva / aspose_words_java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aspose-words/aspose.words-for-java

0.0 2.0 0.0 5.62 MB

Aspose.Words for Java Examples

Home Page: http://www.aspose.com/categories/java-components/aspose.words-for-java/default.aspx

HTML 8.59% Java 91.41%

aspose_words_java's Introduction

##Aspose.Words for Java Examples Repository

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:

  • Rich Set of Features

  • No Microsoft Word Automation

  • Platform Independence

  • Performance and Scalability

  • Minimal Learning Curve

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.

 

###Run Examples on your PC

Download the Aspose Examples Dashboard for Java to view and run all these examples on your PC.

Aspose.Words for Java at a Glance

Aspose.Words Overview

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 advisors.

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 GitHub is a part of the above effort.

##What's Included in this Examples Repository?

###Code

Each example is runnable Java class with its own main method. You can run each example separately and in order to view its output.

ExampleDescription
AddWatermarkDemonstrates how to add a watermark to a Microsoft Word document.
AppendDocumentShows how to join two Word documents together and control how they are joined.
ApplyCustomLogicToEmptyRegionsShows how to remove empty regions from a document after mail merge using custom logic
AutoFitTablesDemonstrates how to use the AutoFit function to fit tables to the page width or to content.
CheckFormatShows how to use FileFormatUtil to check input file formats and if they are supported by Aspose.Words.
CompressImagesCompresses all images in a document that are above the specified PPI.
CopyBookmarkedTextExtracts text from a bookmarked range and shows how to import it into a new document.
DocumentInDBDemonstrates loading and saving a document into a Microsoft Access Database for use in Aspose.Words.
DocumentPreviewAndPrintDemonstrates how to generate a print preview of an Aspose.Words Document for use with the Java Print API
ExamplesContains numerous small but fully working code snippets that are used within the documentation.
ExtractContentProvides code to extract fully formatted content from a document between selected nodes.
ExtractContentBasedOnStylesExtracts content from a document based on styles.
FindAndHighlightFinds and highlights all instances of specified text in a document.
ImageToPdfShows how to convert any common input image formats such as JPEG, PNG, GIF and TIFF to PDF.
ImportFootnotesFromHtmlShows how to round trip footnotes by providing code which imports footnotes from HTML.
ImportTableFromDataTableShows how to build a table in a Word document automatically from a Java ResultSet.
LoadTxtDemonstrates how to import a .txt file into a new Aspose.Words Document.
MailMergeFormFieldsShows how to insert checkboxes and form fields during mail merge.
MulitpleDocsInMailMergeProduces a new document for every record generated during mail merge.
MulitplePagesOnSheetProvides code to print multiple pages from a Word document onto one sheet of paper.
NestedMailMergeShows how to easily merge data directly from a relational data source into a document by using Nested Mail Merge.
ProcessCommentsPrints information about the markup comments found in a input Word document.
RemoveBreaksDemonstrates how to remove page and section breaks from a document loaded into Aspose.Words.
RemoveEmptyRegionsShows how to easily remove mail merge regions from a document that were not merged with data.
ReplaceFieldsWithStaticTextProvides code to automatically convert all fields of a certain type to plain text (Ctrl+Shift+F9 in Word).
SaveAsMultipageTiffShows how to save a document with many pages into a multi-paged TIFF image.
SaveHtmlAndEmailDemonstrates converting a document to HTML for use in e-mail with the Java Mail API.
SaveMhtmlAndEmailShows how to use Aspose.Words to convert a document to MHTML and then load it into a new .msg email using Aspose.Email for Java
SplitIntoHtmlPagesExports a word document into separate HTML articles based on heading styles.
UntangleRowBookmarksDemonstrates how to fix bookmarks if they are incorrectly loaded in table rows.
Word2HelpExpands on the SplitIntoHtmlPages example by producing fully named HTML articles from the source Word document.
XMLMailMergeShows how to perform mail merge from an XML datasource.

###Data

  • Input Documents - Each example directory contains a Data directory which contains any input documents or files used in the example.
  • Northwind.mdb - Many examples use this Microsoft Access Database found under the "Database" directory for demonstrating merging data into documents.

###Output

  • Most examples will perform operations on documents and save them into the Data directory found in the example directory.
  • Other examples print output to the console.
  • Some examples may display print preview dialog and print to a specified printer.

###Help Material

For further details on setting up the examples and any requirements refer to the readme.txt found in the root of the repository.

##Download the Examples

Please Download the Aspose.Words for Java Examples to try them at your end.

##How to use the Examples?

Firstly make sure that you have downloaded and extracted the latest version of Aspose.Words for Java. It�s recommended extracting the Aspose.Words for Java archive to the same location as the examples to ensure all dependencies in the examples can be located.

Download the examples from the above link. The .project and .classpath files are provided to allow easy import of the examples for use in IntelliJ IDEA, Eclipse and NetBeans.

Once downloaded you can open the examples by following the instructions below for your chosen IDE:

To import the examples into IntelliJ IDEA 11.0 and above:

  1. Open IntelliJ and choose File -> Open Project.
  2. Navigate to the root of the examples folder and select it then press Ok to import.

To import the examples into the workspace of any version of Eclipse:

  1. Open Eclipse and choose File -> Import.
  2. From the dialog select General and then Existing Projects into Workspace then press Next.
  3. Click Browse next to Root Directory and choose the root directory of the examples folder.
  4. Click Finish to import.

To import the examples into NetBeans 6.0 and above:

  1. Open NetBeans and choose File -> Import -> Eclipse Project.
  2. Choose Import Project ignoring Project Dependencies.
  3. Browse Project to Import and select the root folder of the examples. Choose the same folder for the Destination Folder.
  4. Click Finish to import.

The examples are sorted into different packages and are ready to compile. To run:

  • Intellij IDEA - Right click on the source file and choose Run.
  • Eclipse - Right click on the source file and choose Run As -> Java Application.
  • NetBeans - Right click on the source file and choose Run File.

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 Forum.

##Contact Us

aspose_words_java's People

Contributors

adam-skelton avatar fatimaahmed avatar muhammad-ijaz avatar saqibrazzaq avatar shahzad-latif avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.