> ## 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.

# Blank decks

## Start from nothing

`PowerPointPresentation.create()` opens a blank 16:9 deck (960 × 540 points) with the Office theme, one master and the standard layouts. It has no slides.

```ts theme={null}
import { PowerPointPresentation } from "@reductoai/pptx/node";

const deck = await PowerPointPresentation.create();
const master = deck.slideMasters.getItemAt(0);

const title = deck.slides.add({ layoutId: master.getLayoutByName("Title Slide").id });
const blank = deck.slides.add({ layoutId: master.getLayoutByName("Blank").id });

console.log(master.layouts.items.map((layout) => layout.name));
// [ "Title Slide", "Title and Content", "Section Header", "Two Content", "Comparison",
//   "Title Only", "Blank", "Content with Caption", "Picture with Caption", ... ]
```

A slide on a layout with placeholders gets those placeholders. Fill them through their text frames:

```ts theme={null}
const [heading, subtitle] = title.shapes.items;
heading.textFrame.textRange.text = "Quarterly review";
subtitle.textFrame.textRange.text = "October";
```

## Change the slide size

```ts theme={null}
deck.pageSetup.slideWidth = 720; // 4:3
deck.pageSetup.slideHeight = 540;
```

## Store blank bytes

A server that only stores a new file (for example, before an editor opens it) does not need the parser. `blankPresentationBytes()` gives the same bytes that `create()` starts from:

```ts theme={null}
import { blankPresentationBytes } from "@reductoai/pptx/blank";

const bytes = blankPresentationBytes(); // Uint8Array, a valid .pptx
```
