> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Command line

The package has a `pptx` command.

```sh theme={null}
npx pptx pdf  deck.pptx -o deck.pdf
npx pptx json deck.pptx -o layout.json
```

## Commands

| Command | Does |
| - | - |
| `pptx pdf <file>` | Writes a PDF, one page per slide |
| `pptx json <file>` | Writes the layout IR (pages, lines, runs, shapes) as JSON |

## Flags

| Flag | Notes |
| - | - |
| `-o, --out` | Output file. Required |
| `--include-hidden` | Also lay out hidden slides |
| `-h, --help` | Print the usage line |

## Example

Convert a folder:

```sh theme={null}
for f in decks/*.pptx; do npx pptx pdf "$f" -o "pdf/$(basename "$f" .pptx).pdf"; done
```
