---
name: "PS_close"
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_close"
---

# PS\_close(3)

Closes a PostScript document

## NAME

PS\_close — Closes a PostScript document

## SYNOPSIS

\#include \<pslib.h\>

void PS\_close(PSDoc \*psdoc)

## DESCRIPTION

Closes the PostScript document. It will not close a file pointer  passed to [PS\_open\_fp(3)](/PS_open_fp/3.md). It only closes files which were opened by  pslib itself.

This function outputs a last line into  the PostScript document, which is a PostScript comment containing  the number of pages. It also writes the bookmark tree.

## SEE ALSO

[PS\_open\_fp(3)](/PS_open_fp/3.md), [PS\_open\_file(3)](/PS_open_file/3.md), [PS\_delete(3)](/PS_delete/3.md)

## AUTHOR

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