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_OPEN_IMAGE(3)					     Library Functions Manual						  PS_OPEN_IMAGE(3)

NAME
PS_open_image -- Reads an image for later placement SYNOPSIS
#include <pslib.h> int PS_open_image(PSDoc *psdoc, char *type, char *source, char *data, int lenght, int width, int height, int components, int bpc, const char *params) DESCRIPTION
Reads an image which is already available in memory. The parameter source is currently not evaluated and assumed to be `memory'. The param- eter type can be either `raw' or `eps'. Images in raw format are expected to be a stream of pixels starting in the upper left and ending in the lower right corner. Each pixel is a tuple of components representing the colors. Each component consists of bpc bit. Color imgags expect the components to be stored in RGB or CMYK order. The number of components implies the colorspace. 4 components imply a CMYK image and not an RGB image with an alpha channel. This restriction may be removed in later versions. EPS images are expect as stored in a file. There is no need to set any other paramter. The height und width of the image is taken from the bounding box within the image data. Since version 0.4.5 of pslib images are read by default for later reuse. This means that the image is saved into a so called reusable stream object. Later calls of PS_place_image(3) will only put a short sequence of postscript code into the output file replay- ing the image. This reduces the overall postscript file size, speeds up its processing by the postscript rip and allows to place images into templates. This behaviour can be turned off by setting the parameter `imagereuse' to false with PS_set_parameter(3). RETURN VALUE
Returns identifier of the image or zero in case of an error. The identifier is a positiv number greater 0. SEE ALSO
PS_open_image_file(3), PS_place_image(3), PS_close_image(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PS_OPEN_IMAGE(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