afpsplit utility: extracts pages from a MO:DCA-P file

Syntax

afpsplit [-f page] [-p page] [-o OutputFile] [InputFile]

Description

Enter the afpsplit command to extract a page or a range of pages from an AFP MO:DCA-P document and create MO:DCA-P output.

You might use the afpsplit command to create a separate file starting at the 25th page and ending at the 50th page of a 200-page document. After you use the afpsplit command to create a file, you can view, store, print, or send that file.

    Note:
  1. afpsplit removes structured index fields from MO:DCA-P files. This does not affect the appearance of printed files, but index entries are no longer available for viewing.
  2. afpsplit writes error messages to STDERR.

Flags

-f page
Specifies the forward space function, where page indicates the number of pages (0-999999999) that you can forward space from the beginning of the input file to start extracting the page or range of pages. To start extracting on page n, forward space n-1 pages.

If you do not specify the -f flag, the extraction starts at the beginning of the file. If you specify more than one -f flag, the last one you specify is used.

-p page
Specifies the page end function, where page indicates the number of pages (0-999999999) to be extracted.

If you do not specify the -p flag, all pages from the forward space point to the end of the input file are included in the output file. If you specify more than one -p flag, the last one you specify is used.

-o OutputFile
Specifies the name of the file for the page or range of pages produced by afpsplit.

If you do not specify this flag, afpsplit uses standard output (STDOUT).

Argument

The valid argument value for the afpsplit utility is:

InputFile
Specifies the input file.

If you do not specify an input file, afpsplit uses standard input (STDIN).

Example

To extract pages 21-30 from a MO:DCA-P input file called input.afp and use the pdpr command to print those 10 pages on printer serv1-lp, enter:

afpsplit -f 20 -p 10 input.afp | pdpr -p serv1-lp