---
name: "wxPostScriptDC"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/wxPostScriptDC"
---

# wxPostScriptDC(3erl)

Functions for wxPostScriptDC class

## NAME

wxPostScriptDC - Functions for wxPostScriptDC class

## DESCRIPTION

This defines the wxWidgets Encapsulated PostScript device context, which can write PostScript files on any platform. See *wxDC* for descriptions of the member functions.

Starting a document

Document should be started with call to *wxDC:startDoc/2* prior to calling any function to execute a drawing operation. However, some functions, like *wxDC:setFont/2*, may be legitimately called even before *wxDC:startDoc/2*.

This class is derived (and can use functions) from: *wxDC*

wxWidgets docs: wxPostScriptDC

## DATA TYPES

```
wxPostScriptDC() = wx:wx_object()
```

## EXPORTS

```
new() -> wxPostScriptDC()
```

```
new(PrintData) -> wxPostScriptDC()
```

Types:

PrintData = wxPrintData:wxPrintData()\

Constructs a PostScript printer device context from a *wxPrintData* object.

```
destroy(This :: wxPostScriptDC()) -> ok
```

Destroys the object.
