This package contains Example Project for GroupDocs.Parser for Java and sample input documents used in 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:
- Open
RunExamples.java - Uncomment the example you want to try out
- Run the project from your IDE, or from the
Examplesdirectory with maven:
mvn compile exec:java -Dexec.mainClass=com.groupdocs.parser.examples.RunExamplesThe sample documents are resolved relative to the working directory (see Constants.SamplesPath), so run the examples with the Examples directory as the working directory.
You may find following resources helpful:
- Learn how to install and configure Maven - Environment Setup
- Maven support for NetBeans
- Maven support for IntelliJ IDEA
- Maven support for Eclipse IDE
Follow below steps if you have product license
- Open
Constants.javaclass - Set the
LicensePathconstant to your license file's path - Call
SetLicenseFromFile.run()fromRunExamples.javabefore any other example - 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.