Split, merge PDF using Sejda

By xngo on February 21, 2019

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

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.