Parameters
- -hosthost
-
- 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.
- This parameter overrides any existing port:n specified in the optional
- -afunctions
- When used with an owner password (-epassword), 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.
- d
- Assemble the document by using options such as inserting, rotating, or deleting pages. You can also create bookmarks or thumbnail images.
- i
- Fill in existing interactive form fields.
- p
- Print the document.
- q
- Print the document using low quality settings.
- s
- Copy text and graphics from the document.
- -epassword
- 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. - -ffdeffile
-
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
+
,-
, orZ
. - 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’
. - -ioptfile
- 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 thelogging.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.
- -nfontpath
- 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. - -ooutputfile
- 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 namedafpdoc.afp
, a file namedafpdoc.pdf
is created. - –ppage_no
- Specifies the page number that is to be transformed in the AFP document.
- -rresfile
-
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’
. - -trotation
- 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.
- -upassword
- Specifies an alphanumeric password that gives permission to open the PDF document (also known as a user or document open password).
- -vmapfile
- 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.