---
name: "PS_new"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_new"
---

# PS\_new(3)

Creating a new PostScript document object

## NAME

PS\_new — Creating a new PostScript document object

## SYNOPSIS

\#include \<pslib.h\>

PSDoc \* PS\_new(void)

## DESCRIPTION

Creates a new document instance. This function internally calls  [PS\_new2(3)](/PS_new2/3.md) with all parameters set to NULL. If you do not take care of  error handling and memory management yourself, this function should  be used for conveniece.

## RETURN VALUE

Pointer to new instance of PostScript document or NULL on  failure.

## SEE ALSO

[PS\_new2(3)](/PS_new2/3.md), [PS\_delete(3)](/PS_delete/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
