From e9194422192803af65f055b7bebcd57dba992024 Mon Sep 17 00:00:00 2001 From: Jesse Anderson Date: Mon, 25 Apr 2016 10:58:28 -0700 Subject: [PATCH] Updated readme with pages to print option. --- README.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.adoc b/README.adoc index 23a1de3..08da205 100644 --- a/README.adoc +++ b/README.adoc @@ -139,6 +139,7 @@ Options: --screenshots-directory Screenshots output directory [screenshots] --screenshots-size Screenshots resolution, can be repeated [--size] --screenshots-format Screenshots image format, one of [jpg, png] [png] + --pages-to-print Print specific pages/slides. Use "all" to print all pages. Specify single pages with their number "1". Use ranges to specify a to and from "1-2". Or more complex "1-2 6-7 10" that would print slides 1, 2, 6, 7, and 10. [all] Defaults to the automatic command. Iterates over the available plugins, picks the compatible one for presentation at the @@ -179,6 +180,16 @@ The `--screenshots-size` option can be set multiple times. For example: $ ./bin/phantomjs decktape.js --screenshots --screenshots-size=400x300 --screenshots-size=800x600 +=== `--pages-to-print` + +Specifies the pages to print similar to how you specify ranges on a printing dialog box. To specify a single page, you give the slide or page number `--pages-to-print "3"`. To capture a range of slide or page numbers, you would use `--pages-to-print "3-10"`, which outputs all pages between three and ten. + +The `--pages-to-print` option can be more complex and mix individual pages with ranges. For example: + + $ ./bin/phantomjs decktape.js --pages-to-print "1 2 3-10" + +The rendering will stop and the file written out after the largest numbered page is written. + == Examples The following slide deck examples have been exported using DeckTape: