A-PDF :: Affordable PDF Tools

A-PDF Scan and Split Command Line

A-PDF Scan and Split Command line (PSASCMD) is a Windows console utility that Split PDF files based on the blank page or barcode page. PSASCMD is included in A-PDF Scan and Split. It does not need Adobe Acrobat.


PSASCMD <Split Method> <Input File> [options]

  <Split Method>  : it can only be either BLANK or BARCODE.
  <Input File>    : The PDF file to be split. 

  -P<Name Pattern>: The output name pattern, such as "{basename}_{part}".
  -O<Output Path> : The output directory. Default is same as the input file.
  -B<Method>      : How to process separator page. The method can be 1,2,3.
                      1 : Discard the separator page. It is the default.
                      2 : Add the separator page to previous split part.
                      3 : Add the separator page to next split part.
  -S<Password>    : If the source file need password to open, use this option 
                    to pass the password.

  PSASCMD BLANK "C:\pdfs\source.pdf"
  PSASCMD BARCODE "C:\pdfs\invoices.pdf" -B2 -O"C:\output" -P"{barcode}"

Return code:
  0: Success
  2: Not enough parameters
  3: Input PDF file can not been found
  4: Load input file failed
  5: Split method error
  6: Split failed
  7: Output directory not found

See also