1 .TH @U_PDFROFF@ @MAN1EXT@ "@MDATE@" "@T_ROFF@ v@VERSION@"
5 Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
7 Copyright (C) 2005 - 2007 Free Software Foundation, Inc.
8 written by Keith Marshall <keith.d.marshall@ntlworld.com>
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.1 or
12 any later version published by the Free Software Foundation; with no
13 Front-Cover Texts, no Back-Cover Texts, and the following Invariant
16 a) This "Legal Matters" section, extending from the start of
17 the document, to the end of the enclosing ".ig" section.
19 b) The entire section bearing the heading "AUTHOR", extending
20 from the ".SH AUTHOR" tag, to the end of the document.
22 You should have received a copy of the Free Documentation License
23 as part of the file COPYING; also located in the main directory of the
24 source package of this program.
29 .\" Local macro definitions
44 @L_PDFROFF@ \- create PDF documents using @T_ROFF@
52 .OP \-abcegilpstzCEGNRSUVXZ
68 .OP \-\-no\-toc\-relocation
69 .OP \-\-no-kill\-null\-pages
70 .OP \-\-stylesheet=\fIname\fP
71 .OP \-\-no\-pdf\-output
72 .OP \-\-pdf\-output=\fIname\fP
73 .OP \-\-no\-reference\-dictionary
74 .OP \-\-reference\-dictionary=\fIname\fP
75 .OP \-\-report\-progress
76 .OP \-\-keep\-temporary\-files
88 .RI [ option\ .\|.\|. ]
97 is a wrapper program for the @T_ROFF@ text processing system,
99 It transparently handles the mechanics of multiple pass
101 processing, when applied to suitably marked up
104 such that tables of contents and body text are formatted separately,
105 and are subsequently combined in the correct order, for final publication
106 as a single PDF document.
108 \*(lqstyle sheet\*(rq
109 capability is provided;
110 this allows for the definition of content which is required to precede the
111 table of contents, in the published document.
114 For each invocation of
118 output stream is post-processed by the GhostScript interpreter,
119 to produce a finished PDF document.
123 makes no assumptions about, and imposes no restrictions on,
126 macro packages which the user may choose to employ,
127 in order to achieve a desired document format;
130 include specific built in support for the
132 macro package, should the user choose to employ it.
135 macro, defined in the
137 package, is used to define public reference marks,
138 or dynamic links to such reference marks, then
140 performs as many preformatting
142 passes as required, up to a maximum limit of
144 in order to compile a document reference dictionary,
145 to resolve references, and to expand the dynamically defined
153 The command line is parsed in accordance with normal GNU conventions,
154 but with one exception \(em when specifying any short form option
155 (i.e., a single character option introduced by a single hyphen),
156 and if that option expects an argument, then it
158 be specified independently (i.e., it may
160 be appended to any group of other single character short form options).
163 Long form option names (i.e., those introduced by a double hyphen)
164 may be abbreviated to their minimum length unambiguous initial
170 usage closely mirrors that of
174 with the exception of the
179 short form options, and
180 all long form options,
181 which are parsed internally by
183 all options and file name arguments specified on the command line are
186 to control the formatting of the PDF document.
189 accepts all options and arguments, as specified in
190 .BR @L_ROFF@ (@MAN1EXT@),
191 which may also be considered as the definitive reference for all standard
193 options and argument usage.
201 accepts all of the short form options
202 (i.e., those introduced by a single hyphen),
203 which are available with
206 In most cases, these are simply passed transparently to
208 the following, however, are handled specially by
219 Process standard input, after all other specified input files.
220 This is passed transparently to
222 but, if grouped with other options, it
224 be the first in the group.
225 Hiding it within a group
226 breaks standard input processing, in the multiple pass
228 processing context of
237 Attempting to specify any other device causes
249 .BR @L_ROFF@ (@MAN1EXT@)
250 for a description of all other short form options,
251 which are transparently passed through
257 All long form options
258 (i.e., those introduced by a double hyphen)
259 are interpreted locally by
265 unless otherwise stated below.
271 to display a summary of the its usage syntax, and supported options,
276 Suppresses the final output conversion step,
279 to emit PostScript output instead of PDF.
281 to capture intermediate PostScript output,
282 when using a specialised postprocessor,
286 in place of the default
291 .B \-\-keep\-temporary\-files
292 Suppresses the deletion of temporary files,
293 which normally occurs after
295 has completed PDF document formatting;
297 when debugging formatting problems.
301 for a description of the temporary files used by
305 .B \-\-no\-pdf\-output
307 .BI \%\-\-reference\-dictionary= name
308 option (described below) to eliminate the overhead of PDF formatting,
311 to create a reference dictionary, for use in a different document.
314 .B \-\-no\-reference\-dictionary
315 May be used to eliminate the overhead of creating a reference dictionary,
316 when it is known that the target PDF document contains no public
317 references, created by the
322 .B \-\-no\-toc\-relocation
323 May be used to eliminate the extra
326 which is required to generate a table of contents,
327 and relocate it to the start of the PDF document,
328 when processing any document which lacks an automatically
329 generated table of contents.
332 .B \-\-no\-kill\-null\-pages
333 While preparing for simulation of the manual collation step,
334 which is traditionally required to relocate of a
335 .I "table of contents"
336 to the start of a document,
338 accumulates a number of empty page descriptions
339 into the intermediate
342 During the final collation step,
343 these empty pages are normally discarded from the finished document;
346 to leave them in place.
349 .BI \-\-pdf\-output= name
350 Specifies the name to be used for the resultant PDF document;
351 if unspecified, the PDF output is written to standard output.
355 to encode the document name in a generated reference dictionary.
358 .BI \-\-reference\-dictionary= name
359 Specifies the name to be used for the generated reference dictionary file;
360 if unspecified, the reference dictionary is created in a temporary file,
361 which is deleted when
363 completes processing of the current document.
366 be specified, if it is desired to save the reference dictionary,
367 for use in references placed in other PDF documents.
370 .B \-\-report\-progress
373 to display an informational message on standard error,
379 .BI \-\-stylesheet= name
380 Specifies the name of an
382 to be used as a style sheet for formatting of content,
383 which is to be placed
385 the table of contents,
386 in the formatted PDF document.
392 to display a version identification message.
393 The entire command line is then passed transparently to
399 in order to display the associated
401 version information, before exiting.
407 The following environment variables may be set, and exported,
408 to modify the behaviour of
412 .B @U_PDFROFF@_COLLATE
413 Specifies the program to be used
414 for collation of the finshed PDF document.
416 This collation step may be required to move
417 .I tables of contents
418 to the start of the finished PDF document,
419 when formatting with traditional macro packages,
420 which print them at the end.
422 users should not normally need to specify
423 .BR \%@U_PDFROFF@_COLLATE ,
425 are not encouraged to do so).
431 which normally suffices.
434 .B \%@L_PDFROFF@_COLLATE
437 then it must act as a filter,
438 accepting a list of file name arguments,
439 and write its output to the
442 whence it is piped to the
443 .BR \%@U_PDFROFF@_POSTPROCESSOR_COMMAND ,
444 to produce the finished PDF output.
447 .BR \%@U_PDFROFF@_COLLATE ,
448 it is normally necessary to also specify
449 .BR \%@U_PDFROFF@_KILL_NULL_PAGES .
451 .B \%@U_PDFROFF@_COLLATE
456 .I \%\-\-no\-kill\-null\-pages
460 .B @U_PDFROFF@_KILL_NULL_PAGES
461 Specifies options to be passed to the
462 .B \%@U_PDFROFF@_COLLATE
465 It should not normally be necessary to specify
466 .BR \%@U_PDFROFF@_KILL_NULL_PAGES .
467 The internal default is a
470 which is intended to remove completely blank pages
471 from the collated output stream,
472 and which should be appropriate in most applications of
475 if any alternative to
478 .BR \%@U_PDFROFF@_COLLATE ,
479 then it is likely that a corresponding alternative specification for
480 .B \%@U_PDFROFF@_KILL_NULL_PAGES
484 .BR \%@U_PDFROFF@_COLLATE ,
485 .B \%@U_PDFROFF@_KILL_NULL_PAGES
490 .I \%\-\-no\-kill\-null\-pages
494 .B @U_PDFROFF@_POSTPROCESSOR_COMMAND
495 Specifies the command to be used for the final document conversion
496 from PostScript intermediate output to PDF.
497 It must behave as a filter,
498 writing its output to the
501 and must accept an arbitrary number of
504 with the special case of
511 .B \%@U_PDFROFF@_POSTPROCESSOR_COMMAND
518 .NH gs \-dBATCH \-dQUIET \-dNOPAUSE \-sDEVICE=pdfwrite \-sOutputFile=\-
523 .B @U_ROFF@_GHOSTSCRIPT_INTERPRETER
524 Specifies the program to be invoked, when
528 PostScript output to PDF.
530 .B \%@U_PDFROFF@_POSTPROCESSOR_COMMAND
532 then the command name it specifies is
535 .BR \%@U_ROFF@_GHOSTSCRIPT_INTERPRETER ,
536 overriding any explicit setting specified in the environment.
538 .B \%@U_ROFF@_GHOSTSCRIPT_INTERPRETER
539 is not specified, then
543 looking for a program with any of the well known names
544 for the GhostScript interpreter;
545 if no GhostScript interpreter can be found,
550 .B @U_ROFF@_AWK_INTERPRETER
551 Specifies the program to be invoked, when
553 is extracting reference dictionary entries from a
555 intermediate message stream.
557 .B \%@U_ROFF@_AWK_INTERPRETER
558 is not specified, then
562 looking for any of the preferred programs, `gawk', `mawk', `nawk'
563 and `awk', in this order;
564 if none of these are found,
566 issues a warning message, and continue processing;
567 however, in this case, no reference dictionary is created.
571 Typically defined automatically by the operating system,
573 is used on Microsoft Win32/MS-DOS platforms
578 which is used when parsing the process
580 to search for external helper programs.
586 overrides the default separator character,
587 (`:' on POSIX/UNIX systems,
590 on Microsoft Win32/MS-DOS),
591 which is used when parsing the process
593 to search for external helper programs.
597 If this is set to a non-empty value, then
599 always behaves as if the
600 .B \%\-\-report\-progress
601 option is specified, on the command line.
607 Input and output files for
609 may be named according to any convention of the user's choice.
610 Typically, input files may be named according to the choice of the
611 principal formatting macro package, e.g.,
613 might be an input file for formatting using the
617 normally, the final output file should be named
622 Temporary files, created by
624 are placed in the directory specified by environment variables (see
627 and named according to the convention
631 is the standard shell variable representing the process ID of the
635 represents any of the extensions used by
637 to identify the following temporary and intermediate files.
642 used to capture reference data emitted by
645 .I reference dictionary
651 .IR "reference dictionary" ,
652 as compiled in the last but one pass of the
653 .I reference dictionary
655 (at the start of the first pass,
656 this file is created empty;
657 in successive passes,
659 .I reference dictionary
661 as collected in the preceding pass).
664 .BR \%\-\-reference\-dictionary =\c
667 this intermediate file becomes permanent,
677 .I reference dictionary
678 entries during the active pass of the
679 .I reference dictionary
681 At the end of any pass,
684 compares as identical to
687 (or the corresponding file named by the
688 .BR \%\-\-reference\-dictionary =\c
692 .I reference dictionary
693 compilation is terminated,
695 .I document reference map
696 is appended to this intermediate file,
697 for inclusion in the final formatting passes.
704 in which \*(lqTable of Contents\*(rq entries are collected,
705 to facilitate relocation before the body text,
706 on ultimate output to the
715 in which the body text is collected prior to ultimate output to the
718 in the proper sequence,
727 .BR @L_ROFF@ (@MAN1EXT@) .
732 Copyright \(co 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
734 Copyright \(co 2005 - 2007 Free Software Foundation, Inc.
737 This man page is distributed under the terms of the
738 GNU Free Documentation License (FDL), version 1.1 or later.
739 It was originally written by
740 .MT keith.d.marshall@\:ntlworld.com
743 who also wrote the implementation of the
745 program, to which it relates.
748 You should have received a copy of the FDL as part of the
750 distribution; it is also available on\-line, at
751 .UR http://\:www.gnu.org/\:copyleft/\:fdl.html
752 the GNU copyleft site