Sponsored Content
Full Discussion: Ghostscript Question
Top Forums UNIX for Dummies Questions & Answers Ghostscript Question Post 16812 by killerserv on Thursday 7th of March 2002 05:35:48 AM
Old 03-07-2002
Other then ghostscript method i suggest you to use efix in efax.The efix program can be used to convert text-only files to postscript format. For example, the following command will convert the text file letter to the files letter.001, letter.002, etc,:

efix -nletter.%03d <letter

The efix program can also insert bitmaps in images to create letterhead, signatures, etc. Ghostscript's tiffg3 driver can generate fax files in TIFF-G3 format from postscript files. For example, the command:

gs -q -sDEVICE=tiffg3 -dNOPAUSE \ -sOutputFile=letter.%03d letter.ps </dev/null

will convert the Postscript file letter.ps into high-resolution (vr=1) G3 fax image files letter.001 & letter.002.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Perl and ghostscript

Hi all I am using HPUX11.0 i want to install perl 5.6.0 and ghostscript 5.03.. can anyone help me to get it download from any free ftp or http link... i searched perl.com and ghostscript.com but in vain.... the procuct are to be installed with the above mentioned version... please... (1 Reply)
Discussion started by: Prafulla
1 Replies

2. UNIX for Dummies Questions & Answers

ghostscript ecryption trouble

Hello, I have a pdf (no security) that I convert into ps using acroread. I then pass that postscript file to ghostscript so I can distill it for the web. acroread -toPostScript -pairs -binary -fast -pairs first.pdf first.ps gs -q -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook... (0 Replies)
Discussion started by: dfr574
0 Replies

3. UNIX for Dummies Questions & Answers

printing with ghostscript via cygwin

good day! =) i was wondering if anyone could help me with this.. i just have a question actually.. you see, i have ghostscript installed in my solaris box.. i have cygwin in my pc which i use to emulate my unix.. my pc already has "Unix Print Services" installed as a system component.. but i... (4 Replies)
Discussion started by: maria_iris
4 Replies

4. HP-UX

Ghostscript Errpr

Hi everyone, I'm new here but I hope there's someone who can help me with this error when running ghostscript/gs: /usr/lib/dld.sl: Unresolved symbol: jpeg_resync_to_restart (code) from gs Abort(coredump) I've managed to install Ghostscript 8.56 including all dependencies successfully... (0 Replies)
Discussion started by: bgail
0 Replies

5. UNIX for Dummies Questions & Answers

Ghostscript

I am trying to use Ghostscript oin AIX to print pdf's and it seems I have downloaded it and all dependencys fine - install went fine, when I type any gs commnad except gs -h it just hangs..Here is what it says before the hang: GNU Ghostscript 5.50 (2000-2-13) Copyright (C) 1998 Aladdin... (6 Replies)
Discussion started by: capeme
6 Replies

6. UNIX for Dummies Questions & Answers

Ghostscript on SCO 5.0.7

I am attempting to update to ghostscript version 8.54 on my SCO 5.0.7 box. When I run ./configure, I get the following error configure: error: no acceptable C compiler found in $PATH Could someone please help me? (0 Replies)
Discussion started by: kberger82
0 Replies

7. Programming

Compiling ghostscript v 9.21

I ran configure, and then make, using the SCO 6.0.0 cc compiler. -bash-3.2# make UX:make: ERROR: bad character | (octal 174), line 277 (bu40)UX:make: ERROR: Mess age not found!! ... (4 Replies)
Discussion started by: jgt
4 Replies
EFIX(1) 																   EFIX(1)

NAME
efix - convert between fax, text, bit-map and gray-scale formats SYNOPSIS
efix [ options ] file... OPTIONS
Where options are: -i f the input image is in format f. Default is to automatically determine the input type from its contents. fax fax ("Group3") 1-D coded image text text. Line feeds separate lines, form feeds cause page breaks and tabs are expanded assuming tabs every 8 columns. pbm raw PBM (portable bit map) tiffg3 TIFF format with Group 3 (fax) compression. tiffraw TIFF format with no compression. -o f write the output in format f. Default is tiffg3. fax fax ("Group3") 1-D coded image pbm raw PBM pgm raw PGM (Portable Gray Map). Gray-scale values are produced by summing pixels in 4x4 pixel blocks. The output file is 1/4 of the size given by -p. The resulting image has 17 discrete values between 0 and 255. pcl HP-PCL (e.g. HP LaserJet). ps encapsulated Postscript (e.g. Apple Laserwriter). The file is compressed using differential coding vertically and run-length cod- ing horizontally. There is no provision for positioning the image within the page and so the image will appear at the lower left corner of the page when printed. tiffg3 TIFF format with Group 3 (fax) compression. tiffraw TIFF format with no compression. -n pat use the printf(3) pattern path to generate the output file name. Up to three %d escapes will be replaced by the page number starting with 1 (e.g. -n order.%03d will create file names order.001, order.002, etc.) -v lvl print messages of type in string lvl. Each lower-case letter in lvl enables one type of message: e - errors w - warnings i - information messages a - program arguments f - file format details The default is "ewi". -f fnt use font file fnt for text. The font file for an WxH font should be a bit map of an image of H rows and 256*W columns. Each suc- cessive WxH cell contains the bit map for characters with codes from 0 to 255. The default is to use a built-in 8x16 font. -s XxY scale the input by a factor of X horizontally and Y vertically. Scaling does not change the size of the output (use -p). If Y is not specified it is assumed to be the same as X. Any floating point value may be used for X and Y. The default is 1,1. -d R,D displace the output right by R and down by D (opposite if negative). See below for units. Default is 0,0. -p WxH truncate or pad the output to generate an image of width W and height H. This does not scale the input. See below for units. The default is the size of the input image if it can be determined or A4 (215x297mm) if it can't. -r XxY assume an output device resolution of X by Y dots per inch. If Y is not specified it is assumed to be the same as X. The default is the input resolution if it can be determined or the fax resolution of 204.1x195.6 dpi if it can't. -R XxY assume an input device resolution of X by Y dots per inch. If Y is not specified it is assumed to be the same as X. The default is the input resolution if it can be determined or the fax resolution of 204.1x195.6 dpi if it can't. -l n place n lines per page during text input. Default is 66. -O f overlay (logical OR) the image from file f into the output. Use "-" for standard input (-O-). Default is no overlay file. -M ignore all other options and copy the standard input to the standard output while applying base64 (MIME) encoding as specified by RFC 1521. FILES
If no -n options are given, output is written to the standard output. UNITS
The units of the W, H, R, and D values above are in inches by default. Any floating point value may be used. Units of inches, centime- tres, millimetres or points (72 per inch) can be used instead by appending one of the strings `in', `cm', `mm', or `pt' to the argument (e.g. -d2,4cm). CUT AND PASTE
The -d and -p options allow efix to cut out images from received faxes for use in other faxes or documents. The -d option specifies the top left portion of the desired image and the -p option gives the size of the cut image. For example, the command efix -d-5,-8 -p2,1 sample.001 >sig.001 would cut out part of the input with its top left corner 5 inches from the left edge and 8 inches from top of the input image. The output image would be 2 inches wide and 1 inch high. The -O option allows efix to superimpose two or more images. The overlay image must be in fax format and cannot be scaled, truncated or shifted. However, multiple efix commands may be used to transform images before combining them. For example, the commands efix -d4,8 signature >sig.fax efix -O sig.fax letterhead >letterhead.fax efix -O letterhead.fax letter.002 >letter.002.new will shift the image in the file signature down 8 inches and right 4 inches and combine (overlay) it with the images in the files letter- head and letter.002. REFERENCES
Gunter Born, "The File Formats Handbook", International Thompson Computer Press, 1995. COPYRIGHT
efix is copyright 1994 -- 1999 by Ed Casas. It may be used, copied and modified under the terms of the GNU Public License. DISCLAIMER
Although efix has been tested it may have errors that will prevent it from working correctly on your system. Some of these errors may cause serious problems including loss of data. SEE ALSO
efax(1), ghostscript(1), pbm(5), pgm(5). BUGS
Only reads two types of TIFF compression formats. Does not write multi-page TIFF files (a feature). 3rd Berkeley Distribution February 1999 EFIX(1)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy