Class SpreadCommand

java.lang.Object
io.github.p4suta.tateyokopdf.cli.SpreadCommand

public final class SpreadCommand extends Object
Command-line front-end built on Apache Commons CLI.

Accepts one or more inputs (files, directories, or - for stdin), resolves them to concrete PDFs via the shared InputResolver, and runs FileConversion for each. Diagnostics and progress go to stderr; with -o - the converted PDF is streamed to stdout. The stdin/stdout temp-file bridge (StdinSource, OutputTarget), the continue-on-error batch loop (BatchDriver), and the throwable→exit-code handler (CliExceptionHandler) come from the shared io.github.p4suta.shared.cli scaffolding.

  • Method Details

    • main

      public static void main(String[] args)
    • runCli

      public static void runCli(String[] args)
    • run

      public static int run(String[] args)
      Parses args, runs the conversion(s), and returns the exit code (never calls exit).