Examples
The following examples can be run on a machine with Transform Feature and InfoPrint Manager installed.
- Use the -o flag to specify the output file name:
afp2pdf -o sample.pdf example.afp
In this example, the -o flag indicates that the output will be generated in the current directory using the output file namesample.pdf
. - To specify a custom form definition, use the
-pragma fdef
flag:afp2pdf -pragma fdef="C:\myfdef\reslib\myformdef.fde" -o sample.pdf example.afp
In this example, the-pragma fdef
flag is assigned the full path to a form definition file namedmyformdef.fde
, which will be used to process theexample.afp
input file. - To specify the rotation value used to control text alignment with page orientation,
use the
-pragma aligntext
flag:afp2pdf -pragma aligntext=180 example.afp
This example aligns the text with a paper orientation that is rotated 180 degrees in anexample.pdf
output file. - Use the -C flag to specify the path and name of a configuration file:
afp2pdf -C mycustom.cfg -o sample.pdf example.afp
Themycustom.cfg
configuration file used to transform theexample.afp
input file to thesample.pdf
output file.