Qoppa’s PDF library jPDFProcess can be used from within a Java command line program, to provide any of its functions through command line options.  By implementing in this way, PDF processing through jPDFProcess can be called from any other application or process to provide PDF functions.

To implement the CLI program, a small Java application needs to be created to parse through the command line options and then make the appropriate calls to jPDFProcess.

Following is a link to a small sample program that illustrates this and that can be used as a starting point in your own implementation:
jpdfprocess-cli.jar

The Java command line program can run on Windows, Linux / Unix and Mac.