Update printing docs

This commit is contained in:
Vadim Makeev 2021-03-02 19:54:26 +03:00
parent 0ee5b8a55e
commit eb480ff683
1 changed files with 13 additions and 7 deletions

View File

@ -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, youll need a browser thats capable of reading page size from `@page` CSS rule. Chromium-based browsers such as Chrome, Opera, Yandex work the best. To export your slides to PDF using a browser, youll need a browser thats 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 its 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 <kbd>Cmd P</kbd> or <kbd>Ctrl P</kbd>.
2. Select PDF as a target instead of printer. 2. Select PDF as a target instead of printer.
3. Save resulted file. 3. Save resulted file.
@ -20,15 +20,21 @@ Open you presentation in a browser, make sure its in the list mode and send i
To export your slides to PDF via console, youll need [Node.js](https://nodejs.org/) with npm installed. Once you have it, you can install Shower CLI package thatll take care of export: To export your slides to PDF via console, youll need [Node.js](https://nodejs.org/) with npm installed. Once you have it, you can install Shower CLI package thatll take care of export:
npm install -g @shower/cli ```sh
npm install -g @shower/cli
```
Once its installed, it becomes globally available as `shower` command. Run it in your presentations folder like this to get your PDF: Once its installed, it becomes globally available as `shower` command. Run it in your presentations folder like this to get your PDF:
shower pdf ```sh
shower pdf
```
Run `shower --help` for more options. But if its a one-time thing and you dont want to install it globally, you can use built-in command coming with Shower main repository: Run `shower --help` for more options. But if its a one-time thing and you dont want to install it globally, you can use built-in command coming with Shower main repository:
npm install ```sh
npm run pdf npm install
npm run pdf
```
Youll find your `slides.pdf` next to your presentation. Youll find `index.pdf` next to your slides.