This module contains runnable Java examples used by Aspose.PDF documentation.
| Directory | Description |
|---|---|
src/main/java/com/aspose/pdf/examples |
Java example runners and operation classes. |
sample-data |
Input and generated output files grouped by example category. |
tools |
Scripts for running all registered example runners. |
From this directory:
mvn clean compileFrom the repository root:
mvn -f examples/documentation/pom.xml clean compileRun one example runner:
mvn -DskipTests exec:java "-Dexec.mainClass=com.aspose.pdf.examples.basicoperations.BasicOperationsExamples"Run all registered runners:
tools/run-all-examples.shtools/run-all-examples.ps1Examples can run without a license in evaluation mode. Provide a license with one of:
- CLI argument:
--license=/path/to/Aspose.PDF.lic - JVM property:
-Daspose.pdf.license=/path/to/Aspose.PDF.lic - Environment variable:
ASPOSE_PDF_LICENSE