1 .TH PDFROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
2 .\" --------------------------------------------------------------------
4 .\" --------------------------------------------------------------------
8 File position: <groff-source>/contrib/pdfmark/pdfroff.man
10 Last update: 5 Jan 2009
12 This file is part of groff, the GNU roff type-setting system.
14 Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
15 written by Keith Marshall <keith.d.marshall@ntlworld.com>
17 Permission is granted to copy, distribute and/or modify this document
18 under the terms of the GNU Free Documentation License, Version 1.3 or
19 any later version published by the Free Software Foundation; with no
20 Front-Cover Texts, no Back-Cover Texts, and the following Invariant
23 a) This "Legal Matters" section, extending from the start of
24 the document, to the end of the enclosing ".ig" section.
26 b) The entire section bearing the heading "AUTHOR", extending
27 from the ".SH AUTHOR" tag, to the end of the document.
29 A copy of the Free Documentation License is included as a file called
30 FDL in the main directory of the groff source package.
34 .\" --------------------------------------------------------------------
35 .\" Local macro definitions
46 .\" --------------------------------------------------------------------
50 pdfroff \- create PDF documents using groff
53 .\" --------------------------------------------------------------------
58 .OP \-abcegilpstzCEGNRSUVXZ
74 .OP \-\-no\-toc\-relocation
75 .OP \-\-no-kill\-null\-pages
76 .OP \-\-stylesheet=\fIname\fP
77 .OP \-\-no\-pdf\-output
78 .OP \-\-pdf\-output=\fIname\fP
79 .OP \-\-no\-reference\-dictionary
80 .OP \-\-reference\-dictionary=\fIname\fP
81 .OP \-\-report\-progress
82 .OP \-\-keep\-temporary\-files
94 .RI [ option\ .\|.\|. ]
98 .\" --------------------------------------------------------------------
103 is a wrapper program for the GNU text processing system,
105 It transparently handles the mechanics of multiple pass
107 processing, when applied to suitably marked up
110 such that tables of contents and body text are formatted separately,
111 and are subsequently combined in the correct order, for final publication
112 as a single PDF document.
114 \*(lqstyle sheet\*(rq
115 capability is provided;
116 this allows for the definition of content which is required to precede the
117 table of contents, in the published document.
120 For each invocation of
124 output stream is post-processed by the GhostScript interpreter,
125 to produce a finished PDF document.
129 makes no assumptions about, and imposes no restrictions on,
132 macro packages which the user may choose to employ,
133 in order to achieve a desired document format;
136 include specific built in support for the
138 macro package, should the user choose to employ it.
141 macro, defined in the
143 package, is used to define public reference marks,
144 or dynamic links to such reference marks, then
146 performs as many preformatting
148 passes as required, up to a maximum limit of
150 in order to compile a document reference dictionary,
151 to resolve references, and to expand the dynamically defined
155 .\" --------------------------------------------------------------------
159 The command line is parsed in accordance with normal GNU conventions,
160 but with one exception \(em when specifying any short form option
161 (i.e., a single character option introduced by a single hyphen),
162 and if that option expects an argument, then it
164 be specified independently (i.e., it may
166 be appended to any group of other single character short form options).
169 Long form option names (i.e., those introduced by a double hyphen)
170 may be abbreviated to their minimum length unambiguous initial
176 usage closely mirrors that of
180 with the exception of the
185 short form options, and
186 all long form options,
187 which are parsed internally by
189 all options and file name arguments specified on the command line are
192 to control the formatting of the PDF document.
195 accepts all options and arguments, as specified in
196 .BR groff (@MAN1EXT@),
197 which may also be considered as the definitive reference for all standard
199 options and argument usage.
202 .\" --------------------------------------------------------------------
207 accepts all of the short form options
208 (i.e., those introduced by a single hyphen),
209 which are available with
212 In most cases, these are simply passed transparently to
214 the following, however, are handled specially by
225 Process standard input, after all other specified input files.
226 This is passed transparently to
228 but, if grouped with other options, it
230 be the first in the group.
231 Hiding it within a group
232 breaks standard input processing, in the multiple pass
234 processing context of
243 Attempting to specify any other device causes
255 .BR groff (@MAN1EXT@)
256 for a description of all other short form options,
257 which are transparently passed through
263 All long form options
264 (i.e., those introduced by a double hyphen)
265 are interpreted locally by
271 unless otherwise stated below.
277 to display a summary of the its usage syntax, and supported options,
282 Suppresses the final output conversion step,
285 to emit PostScript output instead of PDF.
287 to capture intermediate PostScript output,
288 when using a specialised postprocessor,
292 in place of the default
297 .B \-\-keep\-temporary\-files
298 Suppresses the deletion of temporary files,
299 which normally occurs after
301 has completed PDF document formatting;
303 when debugging formatting problems.
307 for a description of the temporary files used by
311 .B \-\-no\-pdf\-output
313 .BI \%\-\-reference\-dictionary= name
314 option (described below) to eliminate the overhead of PDF formatting,
317 to create a reference dictionary, for use in a different document.
320 .B \-\-no\-reference\-dictionary
321 May be used to eliminate the overhead of creating a reference dictionary,
322 when it is known that the target PDF document contains no public
323 references, created by the
328 .B \-\-no\-toc\-relocation
329 May be used to eliminate the extra
332 which is required to generate a table of contents,
333 and relocate it to the start of the PDF document,
334 when processing any document which lacks an automatically
335 generated table of contents.
338 .B \-\-no\-kill\-null\-pages
339 While preparing for simulation of the manual collation step,
340 which is traditionally required to relocate of a
341 .I "table of contents"
342 to the start of a document,
344 accumulates a number of empty page descriptions
345 into the intermediate
348 During the final collation step,
349 these empty pages are normally discarded from the finished document;
352 to leave them in place.
355 .BI \-\-pdf\-output= name
356 Specifies the name to be used for the resultant PDF document;
357 if unspecified, the PDF output is written to standard output.
361 to encode the document name in a generated reference dictionary.
364 .BI \-\-reference\-dictionary= name
365 Specifies the name to be used for the generated reference dictionary file;
366 if unspecified, the reference dictionary is created in a temporary file,
367 which is deleted when
369 completes processing of the current document.
372 be specified, if it is desired to save the reference dictionary,
373 for use in references placed in other PDF documents.
376 .B \-\-report\-progress
379 to display an informational message on standard error,
385 .BI \-\-stylesheet= name
386 Specifies the name of an
388 to be used as a style sheet for formatting of content,
389 which is to be placed
391 the table of contents,
392 in the formatted PDF document.
398 to display a version identification message.
399 The entire command line is then passed transparently to
405 in order to display the associated
407 version information, before exiting.
410 .\" --------------------------------------------------------------------
413 The following environment variables may be set, and exported,
414 to modify the behaviour of
419 Specifies the program to be used
420 for collation of the finshed PDF document.
422 This collation step may be required to move
423 .I tables of contents
424 to the start of the finished PDF document,
425 when formatting with traditional macro packages,
426 which print them at the end.
428 users should not normally need to specify
429 .BR \%PDFROFF_COLLATE ,
431 are not encouraged to do so).
437 which normally suffices.
443 then it must act as a filter,
444 accepting a list of file name arguments,
445 and write its output to the
448 whence it is piped to the
449 .BR \%PDFROFF_POSTPROCESSOR_COMMAND ,
450 to produce the finished PDF output.
453 .BR \%PDFROFF_COLLATE ,
454 it is normally necessary to also specify
455 .BR \%PDFROFF_KILL_NULL_PAGES .
462 .I \%\-\-no\-kill\-null\-pages
466 .B PDFROFF_KILL_NULL_PAGES
467 Specifies options to be passed to the
471 It should not normally be necessary to specify
472 .BR \%PDFROFF_KILL_NULL_PAGES .
473 The internal default is a
476 which is intended to remove completely blank pages
477 from the collated output stream,
478 and which should be appropriate in most applications of
481 if any alternative to
484 .BR \%PDFROFF_COLLATE ,
485 then it is likely that a corresponding alternative specification for
486 .B \%PDFROFF_KILL_NULL_PAGES
490 .BR \%PDFROFF_COLLATE ,
491 .B \%PDFROFF_KILL_NULL_PAGES
496 .I \%\-\-no\-kill\-null\-pages
500 .B PDFROFF_POSTPROCESSOR_COMMAND
501 Specifies the command to be used for the final document conversion
502 from PostScript intermediate output to PDF.
503 It must behave as a filter,
504 writing its output to the
507 and must accept an arbitrary number of
510 with the special case of
517 .B \%PDFROFF_POSTPROCESSOR_COMMAND
524 .NH gs \-dBATCH \-dQUIET \-dNOPAUSE \-sDEVICE=pdfwrite \-sOutputFile=\-
530 Identifies the directory in which
532 should create temporary files.
537 specified, then the variables
542 are considered in turn, as possible temporary file repositories.
543 If none of these are set, then temporary files are created
544 in the current directory.
547 .B GROFF_GHOSTSCRIPT_INTERPRETER
548 Specifies the program to be invoked, when
552 PostScript output to PDF.
554 .B \%PDFROFF_POSTPROCESSOR_COMMAND
556 then the command name it specifies is
559 .BR \%GROFF_GHOSTSCRIPT_INTERPRETER ,
560 overriding any explicit setting specified in the environment.
562 .B \%GROFF_GHOSTSCRIPT_INTERPRETER
563 is not specified, then
567 looking for a program with any of the well known names
568 for the GhostScript interpreter;
569 if no GhostScript interpreter can be found,
574 .B GROFF_AWK_INTERPRETER
575 Specifies the program to be invoked, when
577 is extracting reference dictionary entries from a
579 intermediate message stream.
581 .B \%GROFF_AWK_INTERPRETER
582 is not specified, then
586 looking for any of the preferred programs, `gawk', `mawk', `nawk'
587 and `awk', in this order;
588 if none of these are found,
590 issues a warning message, and continue processing;
591 however, in this case, no reference dictionary is created.
595 Typically defined automatically by the operating system,
597 is used on Microsoft Win32/MS-DOS platforms
602 which is used when parsing the process
604 to search for external helper programs.
610 overrides the default separator character,
611 (`:' on POSIX/UNIX systems,
614 on Microsoft Win32/MS-DOS),
615 which is used when parsing the process
617 to search for external helper programs.
621 If this is set to a non-empty value, then
623 always behaves as if the
624 .B \%\-\-report\-progress
625 option is specified, on the command line.
628 .\" --------------------------------------------------------------------
631 Input and output files for
633 may be named according to any convention of the user's choice.
634 Typically, input files may be named according to the choice of the
635 principal formatting macro package, e.g.,
637 might be an input file for formatting using the
641 normally, the final output file should be named
646 Temporary files, created by
648 are placed in the directory specified by environment variables (see
651 and named according to the convention
655 is the standard shell variable representing the process ID of the
659 represents any of the extensions used by
661 to identify the following temporary and intermediate files.
666 used to capture reference data emitted by
669 .I reference dictionary
675 .IR "reference dictionary" ,
676 as compiled in the last but one pass of the
677 .I reference dictionary
679 (at the start of the first pass,
680 this file is created empty;
681 in successive passes,
683 .I reference dictionary
685 as collected in the preceding pass).
688 .BR \%\-\-reference\-dictionary =\c
691 this intermediate file becomes permanent,
701 .I reference dictionary
702 entries during the active pass of the
703 .I reference dictionary
705 At the end of any pass,
708 compares as identical to
711 (or the corresponding file named by the
712 .BR \%\-\-reference\-dictionary =\c
716 .I reference dictionary
717 compilation is terminated,
719 .I document reference map
720 is appended to this intermediate file,
721 for inclusion in the final formatting passes.
728 in which \*(lqTable of Contents\*(rq entries are collected,
729 to facilitate relocation before the body text,
730 on ultimate output to the
739 in which the body text is collected prior to ultimate output to the
742 in the proper sequence,
748 .\" --------------------------------------------------------------------
752 .BR groff (@MAN1EXT@)
753 for the definitive reference to document formatting with
757 provides a superset of all
760 .BR groff (@MAN1EXT@)
761 may also be considered to be the definitive reference to all
765 with this document providing the reference to
772 imposes neither any restriction on, nor any requirement for,
773 the use of any specific
775 macro package, a number of supplied macro packages,
776 and in particular those associated with the package
778 are best suited for use with
780 as the preferred formatter.
781 Detailed documentation on the use of these packages may be found,
782 in PDF format, in the reference guide
783 .BR "\*(lqPortable Document Format Publishing with GNU Troff\*(rq" ,
784 included in the installed documentation set as
785 .BR \%@PDFDOCDIR@/pdfmark.pdf .
788 .\" --------------------------------------------------------------------
791 Copyright \(co 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
794 This man page is distributed under the terms of the
795 GNU Free Documentation License (FDL), version 1.3 or later,
799 It was originally written by
800 .MT keith.d.marshall@\:ntlworld.com
803 who also wrote the implementation of the
805 program, to which it relates.
808 You should have received a copy of the FDL as part of the
810 distribution; it is also available on\-line, at
811 .UR http://\:www.gnu.org/\:copyleft/\:fdl.html
812 the GNU copyleft site
815 .\" --------------------------------------------------------------------
816 .\" EOF / vim: ft=groff