Skip to content

Latest commit

 

History

History

Examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

GroupDocs.Parser for Java Examples

This package contains Example Project for GroupDocs.Parser for Java and sample input documents used in the examples.

How to Run the Examples?

It is assumed that maven is installed and configured in your system path. You can edit the project by opening in your favorite IDE like NetBeans, Eclipse, and IntelliJ IDEA. Please visit our documentation website for more details.

RunExamples.java is the entry point of the project. Every example is a class with a single static run method, and RunExamples.main calls them one by one:

  1. Open RunExamples.java
  2. Uncomment the example you want to try out
  3. Run the project from your IDE, or from the Examples directory with maven:
mvn compile exec:java -Dexec.mainClass=com.groupdocs.parser.examples.RunExamples

The sample documents are resolved relative to the working directory (see Constants.SamplesPath), so run the examples with the Examples directory as the working directory.

Install and Configure Maven

You may find following resources helpful:

  1. Learn how to install and configure Maven - Environment Setup
  2. Maven support for NetBeans
  3. Maven support for IntelliJ IDEA
  4. Maven support for Eclipse IDE

Apply License

Follow below steps if you have product license

  1. Open Constants.java class
  2. Set the LicensePath constant to your license file's path
  3. Call SetLicenseFromFile.run() from RunExamples.java before any other example
  4. Evaluate the API features listed as examples in RunExamples.java

A license can also be applied from a stream (SetLicenseFromStream) or as a metered license (SetMeteredLicense) — both examples are in the quick_start package.

The examples of the using_ocr package additionally require an Aspose.OCR for Java license; set its path in the Constants.AsposeOcrLicensePath constant.