beautypg.com

Cut and paste utilities, Cut utility (g3chop) – Dialogic 6.2 User Manual

Page 411

background image

Cut and Paste Utilities

November 2009

411

Cut and Paste Utilities

The next two utility commands, g3chop and g3combin, permit

cutting and pasting of fax images at the command line. These two

commands are most commonly used to create letterhead and

signature files.

Cut Utility (g3chop)

Removes portions of Brooktrout Group 3 fax files and stores them in

a separate file.

Command Syntax

g3chop -sx -cy -ifile1.301 -ofile2.301

Where:

For example:

g3chop -s5 -c20 -isalute.301 -oadvert.301

skips the first five lines of the file salute.301, chops the next 20 lines,

and puts them into the output file advert.301.

-s

(start chop) Specifies the distance in 1/10" units, from

the top of the file, to skip before chopping.

-c

(chop size) Specifies the distance in 1/10" units to chop.

-ifile1.301

(input file) Specifies the name of the file to chop.

-ofile2.301

(output file) Specifies the name of the output file which

contains the resulting chopped file.

-l

(lines) Changes the -s and -c arguments to work with

G3 lines as the units.
The number of lines are calculated in inches using the

file resolution if you know how far down in inches you

want to start and you use the -l argument: to skip 2

inches from the top of the file in normal resolution, skip

200 lines; for fine resolution, skip 400 lines.
The number of lines to chop can also be calculated based

on the file resolution and the number of inches to remove

from the file.