php8.5
Home/ Manual/ ps / functions/ ps_new

ps_new

PHP function Edit on GitHub ✎

(PECL ps >= 1.1.0)

Creates a new PostScript document object

Description

ps_new(): resource|false

Creates a new document instance. It does not create the file on disk or in memory, it just sets up everything. ps_new() is usually followed by a call of ps_open_file() to actually create the postscript document.

Parameters Parameters

Return Values

Resource of PostScript documentFalseforfailure. The return value is passed to all other functions as the first argument.

See Also

Source: reference/ps/functions/ps-new.xml · from the official PHP manual (php/doc-en)