HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
m
mkpdf(1M) mkpdf(1M)
The next example shows how to create a completely new PDF from just a list of files. The PDF for the files
under the /PRODUCT directory is created by executing the
find command (see find(1)) on all the files in
the directory structure under
/PRODUCT.A/
is edited onto the beginning of each path name to make it
absolute. The path names are then piped to
mkpdf. The -r option specifies that a root of /PRODUCT
should be prefixed to each path name while the directory is being searched. A
- in the prototype_PDF posi-
tion specifies that
stdin is being used for the prototype PDF file. The resulting PDF does not contain the
/PRODUCT prefix. Note that, with only a list of path names, the linked_to field of linked files will not con-
form to the convention explained in pdf(4).
cd /PRODUCT
find * -print | sed -e ’s:ˆ:/:’ |
mkpdf -r /PRODUCT - PDF
RETURN VALUE
Upon completion, mkpdf returns one of the following values:
0 Successful completion.
1 Nonoptional files in the prototype file were not found.
2 mkpdf encountered other problems.
DIAGNOSTICS
filename: no such file or directory
A nonoptional file was not found on the file system and will not appear in the new PDF.
WARNINGS
Sizes reported do not reflect blocks allocated to directories.
Use of PDFs is discouraged since this functionality is obsolete and is being replaced with Software Distribu-
tor (see sd(4)).
AUTHOR
mkpdf was developed by HP.
SEE ALSO
pdfck(1M), pdfdiff(1M), pdf(4).
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1M−−493