Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ps_movetops_open_file>
^PS FunctionsLast updated: Mon, 26 Oct 2026

ps_new

(PECL ps >= 1.1.0)

ps_new — Creates a new PostScript document object

Description

function 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

This function has no parameters.

Return Values

Resource of PostScript document or false on failure. The return value is passed to all other functions as the first argument.

See Also

  • ps_delete() - Deletes all resources of a PostScript document


<ps_movetops_open_file>
^PS FunctionsLast updated: Mon, 26 Oct 2026