Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_restore(3) [php man page]

PS_RESTORE(3)								 1							     PS_RESTORE(3)

ps_restore - Restore previously save context

SYNOPSIS
bool ps_restore (resource $psdoc) DESCRIPTION
Restores a previously saved graphics context. Any call of ps_save(3) must be accompanied by a call to ps_restore(3). All coordinate trans- formations, line style settings, color settings, etc. are being restored to the state before the call of ps_save(3). 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_save(3). PHP Documentation Group PS_RESTORE(3)

Check Out this Related Man Page

PS_ROTATE(3)								 1							      PS_ROTATE(3)

ps_rotate - Sets rotation factor

SYNOPSIS
bool ps_rotate (resource $psdoc, float $rot) DESCRIPTION
Sets the rotation of the coordinate system. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $rot - Angle of rotation in degree. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Rotation of the coordinate system <?php function rectangle($ps) { ps_moveto($ps, 0, 0); ps_lineto($ps, 0, 50); ps_lineto($ps, 50, 50); ps_lineto($ps, 50, 0); ps_lineto($ps, 0, 0); ps_stroke($ps); } $ps = ps_new(); if (!ps_open_file($ps, "rotation.ps")) { print "Cannot open PostScript file "; exit; } ps_set_info($ps, "Creator", "rotation.php"); ps_set_info($ps, "Author", "Uwe Steinmann"); ps_set_info($ps, "Title", "Rotation example"); ps_set_info($ps, "BoundingBox", "0 0 596 842"); $psfont = ps_findfont($ps, "Helvetica", "", 0); ps_begin_page($ps, 596, 842); ps_set_text_pos($ps, 100, 100); ps_save($ps); ps_translate($ps, 100, 100); ps_rotate($ps, 45); rectangle($ps); ps_restore($ps); ps_setfont($ps, $psfont, 8.0); ps_show($ps, "Text without rotation"); ps_end_page($ps); ps_delete($ps); ?> The above example illustrates a very common way of rotating a graphic (in this case just a rectangle) by simply rotating the coor- dinate system. Since the graphic's coordinate system assumes (0,0) to be the origin, the page coordinate system is also translated to place the graphics not on the edge of the page. Pay attention to the order of ps_translate(3) and ps_rotate(3). In the above case the rectancle is rotated around the point (100, 100) in the untranslated coordinate system. Switching the two statements has a com- pletely different result. In order to output the following text at the original position, all modifications of the coordinate system are encapsulated in ps_save(3) and ps_restore(3). SEE ALSO
ps_scale(3), ps_translate(3). PHP Documentation Group PS_ROTATE(3)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

which cmde recommended to copy an entire dty?

Hi, - i am not unix specialist and i would like to save all the contents of a directory containing symbolic links BUT: + i want to get the links within the copy (to be able to restaor them) + i dont want to copy the directories which are pointed to by theses links some advice? what... (4 Replies)
Discussion started by: JAKEZ
4 Replies

2. Solaris

correct method to recognize new external DAT drives? and a technical {ok} prompt?

yesterday I attached my external HPsurestore DAT drives to my v440 boxes. one one box, I did a "boot -r" on the other, I did a "drvconfig -vC" the drvconfig was nice, as I didn't have to bounce the box...both systems now recognize associated DAT drives :D I was wondering if these are the... (1 Reply)
Discussion started by: mr_manny
1 Replies

3. Advertise with Us

Where are the UNIX Admin Jobs?

Greetings.... I have asked this question before, and gotten the "go to school response" and the "help desk job" response, the problem is, these positions require experience, and I have not found a company willing to hire me. I have complete a Unix Fundamentals course, and I plan to continue my... (24 Replies)
Discussion started by: chlordane
24 Replies

4. Red Hat

how to undo the last installed update on fedora.

Hi All, I'm a newbie to system administration, I'd like to know how to check the logs (what update was installed last) , and I'd like to know how to undo the last update on the fedora 9 system ( kindof an equivalent to system restore in windows). I have a HP 22 inch monitor, when I installed... (3 Replies)
Discussion started by: ramky79
3 Replies

5. Red Hat

Backups and restores in RHEL

Hi, I am new to RHEL. and started exploring/learning RHEL from last few months. I understood LVM and other system admin concepts. But I did not get a chance to explore backup/restore options in RHEL. Can you please explain the procedure on how backups/restores work in linux environment? ... (2 Replies)
Discussion started by: aaron8667
2 Replies

6. AIX

Automatic Server bootup after power outage?

Hi everyone, We had a power outage few days ago, and I got the servers up and running but I was informed to look into, if there is a way to bring up the servers automatically/defaultly. I was told the windows admin has their server set up where the servers are up automatically if there is a... (11 Replies)
Discussion started by: Adnans2k
11 Replies

7. UNIX for Advanced & Expert Users

[BASH] Errormessages and Traps with a 'here-doc'

Happy holidays everyone :) I'm trying to increase usabilty for my scripted project-, for that i wanted to apply an error message poping up upon every and any error (other than proper exit) indicating the enduser a uniform, and hopefully readable error messsage. To achieve this, i wrote a... (4 Replies)
Discussion started by: sea
4 Replies