From eb480ff6832d3c90c4818c196b559d6398b1f034 Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Tue, 2 Mar 2021 19:54:26 +0300 Subject: [PATCH] Update printing docs --- docs/pdf.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/pdf.md b/docs/pdf.md index fce1a0c..34dc342 100644 --- a/docs/pdf.md +++ b/docs/pdf.md @@ -8,9 +8,9 @@ There are two ways of doing this: via browser print dialog or via console. Expor To export your slides to PDF using a browser, you’ll need a browser that’s capable of reading page size from `@page` CSS rule. Chromium-based browsers such as Chrome, Opera, Yandex work the best. -Open you presentation in a browser, make sure it’s in the list mode and send it to print: +Open you presentation in a browser and send it to print: -1. Press `Cmd P` or `Ctrl P`. +1. Press Cmd P or Ctrl P. 2. Select PDF as a target instead of printer. 3. Save resulted file. @@ -20,15 +20,21 @@ Open you presentation in a browser, make sure it’s in the list mode and send i To export your slides to PDF via console, you’ll need [Node.js](https://nodejs.org/) with npm installed. Once you have it, you can install Shower CLI package that’ll take care of export: - npm install -g @shower/cli +```sh +npm install -g @shower/cli +``` Once it’s installed, it becomes globally available as `shower` command. Run it in your presentation’s folder like this to get your PDF: - shower pdf +```sh +shower pdf +``` Run `shower --help` for more options. But if it’s a one-time thing and you don’t want to install it globally, you can use built-in command coming with Shower main repository: - npm install - npm run pdf +```sh +npm install +npm run pdf +``` -You’ll find your `slides.pdf` next to your presentation. +You’ll find `index.pdf` next to your slides.