PS_DELETE(3) 1 PS_DELETE(3)ps_delete - Deletes all resources of a PostScript documentSYNOPSIS
bool ps_delete (resource $psdoc)
DESCRIPTION
Mainly frees memory used by the document. Also closes a file, if it was not closed before with ps_close(3). You should in any case close
the file with ps_close(3) before, because ps_close(3) not just closes the file but also outputs a trailor containing PostScript comments
like the number of pages in the document and adding the bookmark hierarchy.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO ps_close(3).
PHP Documentation Group PS_DELETE(3)
Check Out this Related Man Page
PS_SET_TEXT_POS(3) 1 PS_SET_TEXT_POS(3)ps_set_text_pos - Sets position for text outputSYNOPSIS
bool ps_set_text_pos (resource $psdoc, float $x, float $y)
DESCRIPTION
Set the position for the next text output. You may alternatively set the x and y value separately by calling ps_set_value(3) and choosing
textx respectively texty as the value name.
If you want to output text at a certain position it is more convenient to use ps_show_xy(3) instead of setting the text position and call-
ing ps_show(3).
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $x
- x-coordinate of the new text position.
o $y
- y-coordinate of the new text position.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Placing text at a given position
<?php
$ps = ps_new();
if (!ps_open_file($ps, "text.ps")) {
print "Cannot open PostScript file
";
exit;
}
ps_set_info($ps, "Creator", "rectangle.php");
ps_set_info($ps, "Author", "Uwe Steinmann");
ps_set_info($ps, "Title", "Text placement example");
ps_begin_page($ps, 596, 842);
$psfont = ps_findfont($ps, "Helvetica", "", 0);
ps_setfont($ps, $psfont, 8.0);
ps_show_xy($ps, "Some text at (100, 100)", 100, 100);
ps_set_value($ps, "textx", 100);
ps_set_value($ps, "texty", 120);
ps_show($ps, "Some text at (100, 120)");
ps_end_page($ps);
ps_delete($ps);
?>
SEE ALSO ps_set_value(3), ps_show(3).
PHP Documentation Group PS_SET_TEXT_POS(3)
Setup:
Two users, each likely on Windows PCs, using either putty or SecureCRT to connect to a remote Solaris server. The connection could be either telnet or ssh.
Wanted:
How can the output of one users xterm be directed to the other user so that you can easily allow someone to see what... (8 Replies)
Hi all
What I want?
I want in Insert mode, press Alt-hjkl move cursor, and then back to insert mode.
I know ctrl-o, hjkl can do the job. but everytime I want to move, i have to press ctrl-o, or I have to count how many hjkl I will do, do a C-O (n)hjkl.
What I tried (example only with 'j')... (2 Replies)
Hi,
I am a linux newbie and I dont have any knowledge on scripting but this is my urgent requirement. I am suppose to write a backup script for 2 of my servers, could someone help me out please. below is my requirement
Mail Server 1 : 10.0.0.1 Mail Server 2 : 10.0.0.2 Backup Server... (6 Replies)
Hello All,
I recently encountered this difficulty in processing a File.
Input File has millions of records with fields like below
ID1,ID2,DATE,FLAG,VAL
123,432,0604,1,-0.5
123,432,0604,22,0.5
123,433,0604,1,-0.54
123,433,0604,22,6.77
123,543,0605,22,0.94
To put this simply, I will have... (8 Replies)
I am trying to delete files down 2 paths that are older than 5 days old. I would like to keep a record of the files deleted. I have tried to create a job called by cron with the desired output file stated either in the job itself or in the crontab entry.
In the job itself:
find... (2 Replies)
I cannot access CUPS
When I try http://localhost:631/ I receive
This site can't be reached
localhost refused to connect.
I have purged and reinstalled CUPS and rebooted. It did not help. (14 Replies)