Short graphics printing tutorial with XV for VLSI Lab
 
 
 1. Run XV
Open a new shell window using toolchest.


 

In this new window type:

   xv &
 

Rightclick on the window that comes up.
 


 

A control window will come up.
 


 
  2. Grab the window that contains picture
Make sure the window you want to print is on the top, i.e. it is not coevered by any other window. 
Press the 'Grab' button in the control window.
 


 

A dialog window will come up.
Check the 'Hide XV windows' box and press the 'Grab' button.
 

The XV windows will disappear. Now move the mouse pointer over the window that you want to print and leftclick.
 


 

 


 
 3. Save the grabbed picture in a postscript file
Go back to the xv control window and press the 'Save' button.
 


 

Another dialog window will come up.
From the 'Format' menu choose 'Postscript' by pressing the 'Format' menu.
 


 

From the 'Colors' menu choose 'Full color' by pressing the 'Colors' menu.
 


 

Type a file name under which you wish to save the picture in the 'Save file' box (remember about the .ps extention).
 


 

Press the 'OK' button.
 


 

Another dialog window will come up.
Magic files usualy come out better in landscape orientation, so change the orientation to landscape, by choosing the 'Landscape' option of the orientation group and press the 'OK' button.
 


 

It will create the file_name file in your directory.
 


 
 4. View the postscript file that you have created
To view the postscrip file you can use the ghostview program. Type:

   ghostview file_name

This will show you the same thing that will be printed. If you do not like the result, do not go to the next section, make your changes on the design and start from the begining. If you like the result you can go to the next step and print out your design.

To close ghostview leftclick on 'File' menu and choose the 'Quit' option.
 


 
 5. Print the postscript file
Print the received file with the lp command.

   lp file_name

This command prints a text or postscript file on a default printer.

   lp -d printer_name file_name

This command prints a text or postscript file on a printer specified by printer_name.