HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //opt/remi/php71/root/usr/share/doc/pecl/ps/examples/memory.php
<?php

$ps = ps_new();

if (!ps_open_file($ps, "-")) {
	print "Cannot open PostScript file\n";
	exit;
}

ps_set_info($ps, "Creator", "draw.php");
ps_set_info($ps, "Author", "Uwe Steinmann");
ps_set_info($ps, "Title", "Creating document in memory");

ps_begin_page($ps, 596, 842);
ps_end_page($ps);

ps_close($ps);
echo ps_get_buffer($ps);
ps_delete($ps);

?>