AFPOPT
Use this utility to optimize an AFP print stream. The AFPOPT utility reads an AFP print stream produced by Documaker and outputs a smaller, optimized AFP print stream. During the optimization process, the utility removes:
- Some unnecessary AFP records by combining text blocks together
- Font selection commands from consecutive text records that use the same font
- Text orientation commands from consecutive text records that use the same text orientation
- Baseline positioning commands from consecutive text records that use the same baseline
- Variable space increment commands from consecutive text blocks that use the same variable space increment
Program names
- Windows: AFPOPTW
- UNIX/Linux: AFPOPT
Syntax
AFPOPT /I /O
Parameter |
Description |
/I |
Enter the input AFP file name. You can omit the extension. |
/O |
Enter the name you want the utility to assign to the optimized AFP file. You can omit the extension |
Keep in mind...
- This utility only supports native AFP record format. It does not support Documerge record format (MRG2 or MRG4).
- This utility is specifically designed to optimize Documaker-produced AFP print streams. This means it removes certain AFP commands (Abs. Move Baseline, and Set Var-Space Char Inc) which could result in an invalid AFP print stream if you run it on a non-Documaker produced AFP print stream.
Example
Here is an example:
afpoptw /i=original.afp /o=optimized.afp
AFPOPT - AFP Optimize Program
Reading original.afp...
opt.afp optimized as follows:
AFP Record count reduced by 12% (27 -> 24)
Font Selections reduced by 94% (228 -> 14)
Text Orientations reduced by 100% (229 -> 2)
Abs Move Baseline reduced by 85% (252 -> 40)
Set Var Space Incr reduced by 100% (228 -> 1)
© Copyright 2020, Oracle and/or its affiliates. All rights reserved. Legal notices.