---
name: "paperinit"
section: "3"
platform: "linux"
package: "libpaper-dev"
version: "1.1.29"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/paperinit"
---

# paperinit(3)

begin and end using the paper library

## NAME

paperinit, paperdone - begin and end using the paper library

## SYNOPSYS

```
#include <paper.h>

void paperinit(void)
void paperdone(void)
```

## DESCRIPTION

**paperinit()** initializes the paper library, allocating any resources that are necessary for its use. This function must be called before any other function of the paper library is used.

**paperdone()** frees any resources that were allocated for the paper library. No function of the library should be called after a call to this function.

## SEE ALSO

[**defaultpapername**(3)](/defaultpapername/3.md), [**paperinfo**(3)](/paperinfo/3.md)\
 [**papersize**(5)](/papersize/5.md)
