diff options
Diffstat (limited to 'support/arara/scripts/rules')
-rw-r--r-- | support/arara/scripts/rules/arara-rule-pdftocairo.yaml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/arara-rule-pdftocairo.yaml b/support/arara/scripts/rules/arara-rule-pdftocairo.yaml new file mode 100644 index 0000000000..77ec8f2459 --- /dev/null +++ b/support/arara/scripts/rules/arara-rule-pdftocairo.yaml @@ -0,0 +1,33 @@ +!config +identifier: pdftocairo +name: pdftocairo +authors: +- samcarter +commands: +- name: The pdftocairo program + command: > + @{ + return getCommand('pdftocairo', '-' + format[0], getBasename(reference.fileName)+'.pdf', options, output); + } +arguments: +- identifier: format + flag: > + @{ + return parameters.format; + } + default: png +- identifier: output + flag: > + @{ + return parameters.output; + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + }
\ No newline at end of file |