File: memory.php

package info (click to toggle)
php-ps 1.4.4%2B%2B-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,244 kB
  • sloc: ansic: 2,120; php: 1,628; xml: 375; makefile: 1
file content (21 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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);

?>