Sejda is an open source Java library to edit PDF files.
Here are simple commands that you can do:
@REM Get detail help of <command>(e.g. simplesplit) sejda-console.bat simplesplit -h @REM Split all pages of the PDF into the current directory sejda-console.bat simplesplit -f filename.pdf -o . -s all @REM Merge PDF files sejda-console.bat merge -f *.pdf -o newFile.pdf @REM Rotate PDF 180 degree. Note: folderName is required. sejda-console.bat rotate -r "all:180" -f filename.pdf -o folderName