Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_begin_template(3) [debian man page]

PS_BEGIN_TEMPLATE(3)					     Library Functions Manual					      PS_BEGIN_TEMPLATE(3)

NAME
PS_begin_template -- Starts a new template SYNOPSIS
#include <pslib.h> int PS_begin_template(PSDoc *psdoc, float width, float height) DESCRIPTION
Starts a new template which must be ended by PS_end_template(3). Templates are similar to macros which can be placed on a page like images. Within a template one can call any drawing function. Once a template has been ended by PS_end_template(3) it can be placed on a page by PS_place_image(3). Templates are commonly used for repeating objects like page headers in order to minimize the document size. If image reuse is not turned off (since version 0.4.5 of pslib it is always turned on), PS_place_image(3) may also be called within a template in order to include eps or raster images. RETURN VALUE
Returns an id for referencing the template. SEE ALSO
PS_end_template(3), PS_place_image(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PS_BEGIN_TEMPLATE(3)

Check Out this Related Man Page

PS_BEGIN_TEMPLATE(3)							 1						      PS_BEGIN_TEMPLATE(3)

ps_begin_template - Start a new template

SYNOPSIS
int ps_begin_template (resource $psdoc, float $width, float $height) DESCRIPTION
Starts a new template. A template is called a form in the postscript language. It is created similar to a pattern but used like an image. Templates are often used for drawings which are placed several times through out the document, e.g. like a company logo. All drawing func- tions may be used within a template. The template will not be drawn until it is placed by ps_place_image(3). PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $width - The width of the template in pixel. o $height - The height of the template in pixel. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Creating and using a template <?php $ps = ps_new(); if (!ps_open_file($ps, "template.ps")) { print "Cannot open PostScript file "; exit; } ps_set_parameter($ps, "warning", "true"); ps_set_info($ps, "Creator", "template.php"); ps_set_info($ps, "Author", "Uwe Steinmann"); ps_set_info($ps, "Title", "Template example"); $pstemplate = ps_begin_template($ps, 30.0, 30.0); ps_moveto($ps, 0, 0); ps_lineto($ps, 30, 30); ps_moveto($ps, 0, 30); ps_lineto($ps, 30, 0); ps_stroke($ps); ps_end_template($ps); ps_begin_page($ps, 596, 842); ps_place_image($ps, $pstemplate, 20.0, 20.0, 1.0); ps_place_image($ps, $pstemplate, 50.0, 30.0, 0.5); ps_place_image($ps, $pstemplate, 70.0, 70.0, 0.6); ps_place_image($ps, $pstemplate, 30.0, 50.0, 1.3); ps_end_page($ps); ps_close($ps); ps_delete($ps); ?> SEE ALSO
ps_end_template(3). PHP Documentation Group PS_BEGIN_TEMPLATE(3)
Man Page

11 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Templates

Hello, Anybody in here has any idea where I can get a template like this one for vBulletin. I have actually got my board but it just doesn't look good in the template that I have! Thanks anyway! him (2 Replies)
Discussion started by: him
2 Replies

2. Shell Programming and Scripting

Extracting information from a template

I have a template that I usually use to generate stats on an hourly basis for a number of cell sites altogether. I would like to be able to write a script that would go to the template and extract the information for any single site at any time during the day. For example, let's say that my... (4 Replies)
Discussion started by: Ernst
4 Replies

3. Shell Programming and Scripting

create users from template

Create users from template file (0 Replies)
Discussion started by: rijeshpp
0 Replies

4. Shell Programming and Scripting

How to diply Files that are not ended with .sh

Cal any one let me know how to disply the files that are not ended with .sh Is there any command that to reverse the regular expression. ls -l *.sh displys all files ended with .sh exactly opposite files(not ended with .sh). (3 Replies)
Discussion started by: svenkatareddy
3 Replies

5. Shell Programming and Scripting

Help with template like solution

hi experts, i'm trying to do this: file1 is a template. might have kinds of 'funny' characters. sample: <body> <form> <p><input type="text" name="abc"/></p> &nbsp; <p><my_content></p> </form> </body> file2 is a file that contains lots of text. this might be very big. might have... (2 Replies)
Discussion started by: xjohnu
2 Replies

6. UNIX for Dummies Questions & Answers

Updating a template - Ubuntu Image

Hello, This might sound like a really silly question but that is why i post it in Unix for Dummies :) I am a little confused as to how I can install software or remove software from an image (say an ubuntu template created out of an already existing system). Is there a direct way to do that to... (3 Replies)
Discussion started by: mnanavati
3 Replies

7. Homework & Coursework Questions

HTML document

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: <HTML><HEAD><TITLE>Personal Web Page</TITLE></HEAD> <BODY BGCOLOR="WHITE"><H3> <CENTER>My Personal Page<HR>... (0 Replies)
Discussion started by: Larry_1
0 Replies

8. Homework & Coursework Questions

number ended by 0

i have to create a simple program for my programming class and mij ide is giving me some errors. The program has to calculate the number of figures entered by a hid ended by a "0" the code i've written is: // number of numbers.cpp : Defines the entry point for the console application. //... (2 Replies)
Discussion started by: metal005
2 Replies

9. Programming

C++ template error

I get some compiling errors about template instantiation :wall: , but I can't find where the syntax errors happens. Can some help me? template<typename Type> class SingleList; template<typename Type> class SingleListNode{ private: friend class SingleList<Type>; SingleListNode() :... (1 Reply)
Discussion started by: 915086731
1 Replies

10. Programming

Understanding C++ template partial specialization with pointer datatype arguments

When I compile the below code, I am getting error as template<typename T> T AddFun(T i, T j) { return i + j; } template<> T* AddFun<T*>(T* i, T* j) { return new T(*i + *j); } int main() { int n = AddFun<int>(10, 20); int i = 10, j = 20; int* p = AddFun<int*>(&i,... (1 Reply)
Discussion started by: royalibrahim
1 Replies

11. Homework & Coursework Questions

I need help movingworking code into library function and calling it obj13-2.pl

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! I need help moving working code into library function called obj13-lib.pl and call the same function in obj13-2.pl I am a Linux newbie and this certificate is my first step... (0 Replies)
Discussion started by: cllinuxhelp
0 Replies