我已经下载了 sejda-console 并想用它来合并 PDF 并创建一个目录,为输出文档中的每个合并的 PDF 添加书签。我以为我理解了语法,但我遇到了一个错误:
$ ~/sejda-console-1.0.0.M10/bin/sejda-console merge -e "Analog_2015-03-(.*)k2opt.pdf" -b one_entry_each_doc -o Analog_2015-03_sejda.pdf
12:35:55.410 Configuring Sejda 1.0.0.M10
12:35:55.430 Loading Sejda configuration form default sejda.xml
12:35:55.549 Starting execution with arguments: 'merge -e Analog_2015-03-(.*)k2opt.pdf -b one_entry_each_doc -o Analog_2015-03_sejda.pdf'
12:35:55.549 Java version: '1.7.0_75'
12:35:55.649
To report a bug, please visit http://www.sejda.org/issuetracker
Helpful information to include when raising a bug: the input files, the command line executed and the stack trace below.
12:35:55.658 Too many options given for input. Please use only one of the following options: --directory --filesListConfig --file
org.sejda.model.exception.SejdaRuntimeException: Too many options given for input. Please use only one of the following options: --directory --filesListConfig --file
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.extractPdfMergeInputs(MergeCliArgumentsTransformer.java:82) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.toTaskParameters(MergeCliArgumentsTransformer.java:54) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.toTaskParameters(MergeCliArgumentsTransformer.java:37) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.transformer.CliInterfacedTask.getTaskParameters(CliCommand.java:377) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.transformer.CliCommand.parseTaskParameters(CliCommand.java:314) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.SejdaConsole.executeCommand(SejdaConsole.java:106) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.SejdaConsole.doExecute(SejdaConsole.java:80) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.SejdaConsole.execute(SejdaConsole.java:56) ~[sejda-console-1.0.0.M10.jar:na]
at org.sejda.cli.Main.main(Main.java:38) [sejda-console-1.0.0.M10.jar:na]
Exception in thread "main" org.sejda.model.exception.SejdaRuntimeException: Too many options given for input. Please use only one of the following options: --directory --filesListConfig --file
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.extractPdfMergeInputs(MergeCliArgumentsTransformer.java:82)
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.toTaskParameters(MergeCliArgumentsTransformer.java:54)
at org.sejda.cli.transformer.MergeCliArgumentsTransformer.toTaskParameters(MergeCliArgumentsTransformer.java:37)
at org.sejda.cli.transformer.CliInterfacedTask.getTaskParameters(CliCommand.java:377)
at org.sejda.cli.transformer.CliCommand.parseTaskParameters(CliCommand.java:314)
at org.sejda.cli.SejdaConsole.executeCommand(SejdaConsole.java:106)
at org.sejda.cli.SejdaConsole.doExecute(SejdaConsole.java:80)
at org.sejda.cli.SejdaConsole.execute(SejdaConsole.java:56)
at org.sejda.cli.Main.main(Main.java:38)
我看不到我在哪里提供了太多选择。请指出我的错误。谢谢您的帮助。
戴夫