Examples -- afpxpdf
- Transform an AFP UNIX file,
specifying a transform class and output file
- To transform the AFP UNIX file myfile.afp into
an output PDF file called myfile.pdf, using the us transform
class, enter:
afpxpdf -c us -o myfile.pdf myfile.afp
- Transform an AFP MVS™ data set, specifying a form definition
- To transform the MVS data
set USERX.AFP(MYFILE) into an output PDF file called myfile.pdf,
using the form definition F1C10110, enter:
afpxpdf -j "form-def=f1c10110" -o myfile.pdf "//'USERX.AFP(MYFILE)'"
- Transform an AFP UNIX file,
specifying a form definition and a resource library
- To transform the AFP UNIX file myfile.afp into
an output PDF file called myfile.pdf, using the form definition F1C10110 that
contains references to user-supplied AFP resources,
enter this command on one line:
afpxpdf -j "form-def=f1c10110 res-lib={lib1.pseglib lib3.private}"
-o myfile.pdf myfile.afp
- Transform a job using redirection
- To transform the UNIX AFP file input.afp into
the PDF output file called output.pdf, enter:
afpxpdf < input.afp > output.pdf
Note:
You can use redirection operators only with UNIX files.
- Transform a UNIX AFP file to an MVS data set
- To transform the line data file input.line into an AFP MVS PDF
output data set called HLQ.OUTPUT.PDF(MYDOC), enter:
afpxpdf -j doc-format=line -o "//'HLQ.OUTPUT.PDF(MYDOC)'" input.line
- Transform an AFP MVS data set, writing the output
to a UNIX file
- To transform the AFP MVS data set hlq.INPUT.LINE(MYDOC) into
an output file called output.pdf, enter:
afpxpdf -o output.pdf "//'HLQ.INPUT.LINE(MYDOC)'"
- Transform line data, specifying a form definition and
a page definition
- To transform the line data file myfile.line that
contains ANSI carriage control characters into an output PDF file
called myfile.pdf, using the form definition F1C10110 and
page definition P1P06362, enter this command on one line:
afpxpdf -j "form-def=f1c10110 page-def=p1p06362 c-c-t=a doc-format=line"
-o myfile.pdf myfile.line
- Transform line data for viewing in
landscape orientation
- To transform the line data file myfile.line that
contains ANSI carriage control characters into a PDF file that you
can view with Adobe Reader
in the landscape direction, enter this command on one line:
afpxpdf -j "form-def=f10101la page-def=p1a06462 c-c-t=a doc-format=line"
-o myfile.pdf myfile.line
- Transform line data, specifying a form definition,
a page definition, and fonts
- To transform the line data file myfile.line containing
machine carriage control characters and table reference characters
into an output PDF file called myfile.pdf, using the form
definition F1C10110 and page definition F1P06362,
enter this command on one line:
afpxpdf -j "form-def=f1c10110 page-def=p1p06362 c-c-t=m t-r-c=yes chars={60D8 60D0}"
-o myfile.pdf myfile.line
- Transform line data, specifying a page definition
and print offset
- To transform the line data file myfile.line containing
machine carriage control characters into an output PDF file called myfile.pdf,
using the page definition P1P06362 and positioning the
output 24 millimeters (approximately one inch) from the left edge
of the paper, enter this command on one line:
afpxpdf -j "page-def=p1p06362 c-c-t=m x-image-shift-front=24"
-o myfile.pdfmyfile.line
- Transform an AFP file,
encrypting the PDF document and specifying restrictions
- To transform the AFP file myfile.afp into
an output PDF file called myfile.pdf, encrypting the PDF
document and specifying that the user cannot print or change the encrypted
PDF document, enter this command on one line:
afpxpdf -j "pdf-owner-identifier='Nurse-Lee' pdf-user-identifier='Dr-Smith'
pdf-protect={print update}" -o myfile.pdf myfile.afp
- Transform an AFP MVS data
set and receive MVS return codes
- To transform the MVS data
set USERX.AFP(MYFILE) into an output PDF file called myfile.pdf and
receive MVS return codes (0,
4, 8), enter:
AOP_MVS_RETURN_CODES=YES afpxpdf -o myfile.pdf "//'USERX.AFP(MYFILE)'"
MVS return codes indicate whether
the transform was successful (0), a transform warning occurred (4),
or a transform error occurred (8).
- Transform an AFP document with TrueType fonts
in multiple font directories
- To transform an AFP document
with TrueType fonts that are found in external resource directories:
afpxpdf -j "resource-directories={/usr/lpp/fontpath1 /usr/lpp/fontpath2}" -o myfile.pdf myfile.afp
|