Parameters

-host host
    Note:
  • The use of -host is only allowed for backwards compatibility purposes. However, when used, the transform ignores the host value and replaces it with the localhost value.
-port port
Specifies the TCP/IP port number that the client uses to communicate with the server. The default port is 6512. This can be changed, but has to match the server port number in the Server.cfg file.
    Note:
  • This parameter overrides any existing port:n specified in the optional a2pclient.cfg file.
-a functions
When used with an owner password (-e password), specifies which PDF display functions are restricted. The codes for the display functions, which can be used in any order, are:
a
Add or modify text annotations and interactive form fields.
c
Modify the document contents.
p
Print the document.
s
Copy text and graphics from the document.
-e password
Specifies an alphanumeric password that gives permission to change document security settings (also known as a master, owner, or document open password). For example, if the printing function in the PDF display is restricted (-a p), you must supply a password to override the setting.
-f fdeffile

Specifies the fully qualified file name of the form definition resource that is used when transforming an AFP file. For example, afp2pdf –f c:\mydirectory\myformdef.fde afpfile.afp.

-g (timestamp)
Sets a time stamp for when the document was created.
Note: This command can be specified, but is not supported in the current implementation. It exists for compatibility purposes only.

The format of the time stamp is:

YYYMMDDHHmmSSOHH'mm'
where:
  • YYYY is the year.
  • MM is the month.
  • DD is the day (01-31).
  • HH is the hour (00-23).
  • mm is the minute (00-59).
  • SS is the second (00-59).
  • O is the relationship of local time to Universal Time (UT), denoted by one of the characters +, -, or Z.
  • HH is the absolute value of the offset from UT in hours (00-23).
  • mm is the absolute value of the offset from UT in minutes (00-59).

For example, December 23, 1998, at 7:52 PM, U.S. Pacific Standard Time, is represented by the string 19981223195200-08’08’.

-i optfile
Specifies the location and name of the transform options file. The default is a2pxopts.cfg in the same directory as the program module. This file name must not use relative paths and must be fully qualified. See AFP2PDF Plus Transform Options File for more information about the options file.
-l
Turns off all the generated error and informational console messages and sends them to the afp2web.err log file.
Note: This command can be specified, but it is not supported in the current implementation. It exists for compatibility purposes only.

AFP2PDF Plus error logging is controlled by the logging.properties file. For information about this file, see Configuring the logging.properties File.

-m
Generates a linearized PDF (or Fast Web View PDF) that reorganizes the data for more efficient processing in a network environment. When specifying this parameter, large PDF files are displayed without long download delays.
Note: To use this parameter, verify that the Web server or Web application sending the PDF data over the network provides the page-by-page or "byte-serving" downloading function.
-n fontpath
Specifies the location of the font definition files needed by the transform. The default is the \font subdirectory of the directory where the transform modules are installed.
-o outputfile
Specifies the location and file name of the output PDF file. The default has the same location and name as the input file, but with a file extension of .pdf. For example, when the PDF is generated from an AFP file named afpdoc.afp, a file named afpdoc.pdf is created.
–p page_no
Specifies the page number that is to be transformed in the AFP document.
-r resfile

Specifies the fully qualified file name of the AFP resource group to be used when transforming the AFP file. For example, afp2pdf –r c:\mydirectory\afpresfile.res afpfile.afp.

-s (timestamp)
Sets a time stamp for when the document was signed.
Note: This command can be specified, but is not supported in the current implementation. It exists for compatibility purposes only.

The format of the time stamp is:

YYYMMDDHHmmSSOHH'mm'
where:
  • YYYY is the year.
  • MM is the month.
  • DD is the day (01-31).
  • HH is the hour (00-23).
  • mm is the minute (00-59).
  • SS is the second (00-59).
  • O is the relationship of local time to Universal Time (UT), denoted by one of the characters +, -, or Z.
  • HH is the absolute value of the offset from UT in hours (00-23).
  • mm is the absolute value of the offset from UT in minutes (00-59).

For example, December 23, 1998, at 7:52 PM, U.S. Pacific Standard Time, is represented by the string 19981223195200-08’08’.

-t rotation
Specifies the rotation value to use when transforming the file. Valid values are 0, 90, 180, and 270. The default is 0.

Some AFP files might have already been formatted with a rotated orientation. In this case, use this parameter to align the text in an upright position.

    Note:
  • The transform applies the rotation to the entire page, including new images added with image mapping.
-u password
Specifies an alphanumeric password that gives permission to open the PDF document (also known as a user or document open password).
-v mapfile
Specifies the location and the name of the image map configuration. This file name does not use relative paths and is fully qualified. See Parameters, for more information about the image map configuration file.
inputfile
Specifies the AFP input file that is to be transformed to PDF. This parameter is required.