1 .TH PDFROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
2 .\" --------------------------------------------------------------------
4 .\" --------------------------------------------------------------------
8 File position: <groff-source>/contrib/pdfmark/pdfroff.man
13 This file is part of groff, the GNU roff type-setting system.
15 Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
16 written by Keith Marshall <keith.d.marshall@ntlworld.com>
18 Permission is granted to copy, distribute and/or modify this document
19 under the terms of the GNU Free Documentation License, Version 1.1 or
20 any later version published by the Free Software Foundation; with no
21 Front-Cover Texts, no Back-Cover Texts, and the following Invariant
24 a) This "Legal Matters" section, extending from the start of
25 the document, to the end of the enclosing ".ig" section.
27 b) The entire section bearing the heading "AUTHOR", extending
28 from the ".SH AUTHOR" tag, to the end of the document.
30 A copy of the Free Documentation License is included as a file called
31 FDL in the main directory of the groff source package.
35 .\" --------------------------------------------------------------------
36 .\" Local macro definitions
47 .\" --------------------------------------------------------------------
51 pdfroff \- create PDF documents using groff
54 .\" --------------------------------------------------------------------
59 .OP \-abcegilpstzCEGNRSUVXZ
75 .OP \-\-no\-toc\-relocation
76 .OP \-\-no-kill\-null\-pages
77 .OP \-\-stylesheet=\fIname\fP
78 .OP \-\-no\-pdf\-output
79 .OP \-\-pdf\-output=\fIname\fP
80 .OP \-\-no\-reference\-dictionary
81 .OP \-\-reference\-dictionary=\fIname\fP
82 .OP \-\-report\-progress
83 .OP \-\-keep\-temporary\-files
95 .RI [ option\ .\|.\|. ]
99 .\" --------------------------------------------------------------------
104 is a wrapper program for the GNU text processing system,
106 It transparently handles the mechanics of multiple pass
108 processing, when applied to suitably marked up
111 such that tables of contents and body text are formatted separately,
112 and are subsequently combined in the correct order, for final publication
113 as a single PDF document.
115 \*(lqstyle sheet\*(rq
116 capability is provided;
117 this allows for the definition of content which is required to precede the
118 table of contents, in the published document.
121 For each invocation of
125 output stream is post-processed by the GhostScript interpreter,
126 to produce a finished PDF document.
130 makes no assumptions about, and imposes no restrictions on,
133 macro packages which the user may choose to employ,
134 in order to achieve a desired document format;
137 include specific built in support for the
139 macro package, should the user choose to employ it.
142 macro, defined in the
144 package, is used to define public reference marks,
145 or dynamic links to such reference marks, then
147 performs as many preformatting
149 passes as required, up to a maximum limit of
151 in order to compile a document reference dictionary,
152 to resolve references, and to expand the dynamically defined
156 .\" --------------------------------------------------------------------
160 The command line is parsed in accordance with normal GNU conventions,
161 but with one exception \(em when specifying any short form option
162 (i.e., a single character option introduced by a single hyphen),
163 and if that option expects an argument, then it
165 be specified independently (i.e., it may
167 be appended to any group of other single character short form options).
170 Long form option names (i.e., those introduced by a double hyphen)
171 may be abbreviated to their minimum length unambiguous initial
177 usage closely mirrors that of
181 with the exception of the
186 short form options, and
187 all long form options,
188 which are parsed internally by
190 all options and file name arguments specified on the command line are
193 to control the formatting of the PDF document.
196 accepts all options and arguments, as specified in
197 .BR groff (@MAN1EXT@),
198 which may also be considered as the definitive reference for all standard
200 options and argument usage.
203 .\" --------------------------------------------------------------------
208 accepts all of the short form options
209 (i.e., those introduced by a single hyphen),
210 which are available with
213 In most cases, these are simply passed transparently to
215 the following, however, are handled specially by
226 Process standard input, after all other specified input files.
227 This is passed transparently to
229 but, if grouped with other options, it
231 be the first in the group.
232 Hiding it within a group
233 breaks standard input processing, in the multiple pass
235 processing context of
244 Attempting to specify any other device causes
256 .BR groff (@MAN1EXT@)
257 for a description of all other short form options,
258 which are transparently passed through
264 All long form options
265 (i.e., those introduced by a double hyphen)
266 are interpreted locally by
272 unless otherwise stated below.
278 to display a summary of the its usage syntax, and supported options,
283 Suppresses the final output conversion step,
286 to emit PostScript output instead of PDF.
288 to capture intermediate PostScript output,
289 when using a specialised postprocessor,
293 in place of the default
298 .B \-\-keep\-temporary\-files
299 Suppresses the deletion of temporary files,
300 which normally occurs after
302 has completed PDF document formatting;
304 when debugging formatting problems.
308 for a description of the temporary files used by
312 .B \-\-no\-pdf\-output
314 .BI \%\-\-reference\-dictionary= name
315 option (described below) to eliminate the overhead of PDF formatting,
318 to create a reference dictionary, for use in a different document.
321 .B \-\-no\-reference\-dictionary
322 May be used to eliminate the overhead of creating a reference dictionary,
323 when it is known that the target PDF document contains no public
324 references, created by the
329 .B \-\-no\-toc\-relocation
330 May be used to eliminate the extra
333 which is required to generate a table of contents,
334 and relocate it to the start of the PDF document,
335 when processing any document which lacks an automatically
336 generated table of contents.
339 .B \-\-no\-kill\-null\-pages
340 While preparing for simulation of the manual collation step,
341 which is traditionally required to relocate of a
342 .I "table of contents"
343 to the start of a document,
345 accumulates a number of empty page descriptions
346 into the intermediate
349 During the final collation step,
350 these empty pages are normally discarded from the finished document;
353 to leave them in place.
356 .BI \-\-pdf\-output= name
357 Specifies the name to be used for the resultant PDF document;
358 if unspecified, the PDF output is written to standard output.
362 to encode the document name in a generated reference dictionary.
365 .BI \-\-reference\-dictionary= name
366 Specifies the name to be used for the generated reference dictionary file;
367 if unspecified, the reference dictionary is created in a temporary file,
368 which is deleted when
370 completes processing of the current document.
373 be specified, if it is desired to save the reference dictionary,
374 for use in references placed in other PDF documents.
377 .B \-\-report\-progress
380 to display an informational message on standard error,
386 .BI \-\-stylesheet= name
387 Specifies the name of an
389 to be used as a style sheet for formatting of content,
390 which is to be placed
392 the table of contents,
393 in the formatted PDF document.
399 to display a version identification message.
400 The entire command line is then passed transparently to
406 in order to display the associated
408 version information, before exiting.
411 .\" --------------------------------------------------------------------
414 The following environment variables may be set, and exported,
415 to modify the behaviour of
420 Specifies the program to be used
421 for collation of the finshed PDF document.
423 This collation step may be required to move
424 .I tables of contents
425 to the start of the finished PDF document,
426 when formatting with traditional macro packages,
427 which print them at the end.
429 users should not normally need to specify
430 .BR \%PDFROFF_COLLATE ,
432 are not encouraged to do so).
438 which normally suffices.
444 then it must act as a filter,
445 accepting a list of file name arguments,
446 and write its output to the
449 whence it is piped to the
450 .BR \%PDFROFF_POSTPROCESSOR_COMMAND ,
451 to produce the finished PDF output.
454 .BR \%PDFROFF_COLLATE ,
455 it is normally necessary to also specify
456 .BR \%PDFROFF_KILL_NULL_PAGES .
463 .I \%\-\-no\-kill\-null\-pages
467 .B PDFROFF_KILL_NULL_PAGES
468 Specifies options to be passed to the
472 It should not normally be necessary to specify
473 .BR \%PDFROFF_KILL_NULL_PAGES .
474 The internal default is a
477 which is intended to remove completely blank pages
478 from the collated output stream,
479 and which should be appropriate in most applications of
482 if any alternative to
485 .BR \%PDFROFF_COLLATE ,
486 then it is likely that a corresponding alternative specification for
487 .B \%PDFROFF_KILL_NULL_PAGES
491 .BR \%PDFROFF_COLLATE ,
492 .B \%PDFROFF_KILL_NULL_PAGES
497 .I \%\-\-no\-kill\-null\-pages
501 .B PDFROFF_POSTPROCESSOR_COMMAND
502 Specifies the command to be used for the final document conversion
503 from PostScript intermediate output to PDF.
504 It must behave as a filter,
505 writing its output to the
508 and must accept an arbitrary number of
511 with the special case of
518 .B \%PDFROFF_POSTPROCESSOR_COMMAND
525 .NH gs \-dBATCH \-dQUIET \-dNOPAUSE \-sDEVICE=pdfwrite \-sOutputFile=\-
531 Identifies the directory in which
533 should create temporary files.
538 specified, then the variables
543 are considered in turn, as possible temporary file repositories.
544 If none of these are set, then temporary files are created
545 in the current directory.
548 .B GROFF_GHOSTSCRIPT_INTERPRETER
549 Specifies the program to be invoked, when
553 PostScript output to PDF.
555 .B \%PDFROFF_POSTPROCESSOR_COMMAND
557 then the command name it specifies is
560 .BR \%GROFF_GHOSTSCRIPT_INTERPRETER ,
561 overriding any explicit setting specified in the environment.
563 .B \%GROFF_GHOSTSCRIPT_INTERPRETER
564 is not specified, then
568 looking for a program with any of the well known names
569 for the GhostScript interpreter;
570 if no GhostScript interpreter can be found,
575 .B GROFF_AWK_INTERPRETER
576 Specifies the program to be invoked, when
578 is extracting reference dictionary entries from a
580 intermediate message stream.
582 .B \%GROFF_AWK_INTERPRETER
583 is not specified, then
587 looking for any of the preferred programs, `gawk', `mawk', `nawk'
588 and `awk', in this order;
589 if none of these are found,
591 issues a warning message, and continue processing;
592 however, in this case, no reference dictionary is created.
596 Typically defined automatically by the operating system,
598 is used on Microsoft Win32/MS-DOS platforms
603 which is used when parsing the process
605 to search for external helper programs.
611 overrides the default separator character,
612 (`:' on POSIX/UNIX systems,
615 on Microsoft Win32/MS-DOS),
616 which is used when parsing the process
618 to search for external helper programs.
622 If this is set to a non-empty value, then
624 always behaves as if the
625 .B \%\-\-report\-progress
626 option is specified, on the command line.
629 .\" --------------------------------------------------------------------
632 Input and output files for
634 may be named according to any convention of the user's choice.
635 Typically, input files may be named according to the choice of the
636 principal formatting macro package, e.g.,
638 might be an input file for formatting using the
642 normally, the final output file should be named
647 Temporary files, created by
649 are placed in the directory specified by environment variables (see
652 and named according to the convention
656 is the standard shell variable representing the process ID of the
660 represents any of the extensions used by
662 to identify the following temporary and intermediate files.
667 used to capture reference data emitted by
670 .I reference dictionary
676 .IR "reference dictionary" ,
677 as compiled in the last but one pass of the
678 .I reference dictionary
680 (at the start of the first pass,
681 this file is created empty;
682 in successive passes,
684 .I reference dictionary
686 as collected in the preceding pass).
689 .BR \%\-\-reference\-dictionary =\c
692 this intermediate file becomes permanent,
702 .I reference dictionary
703 entries during the active pass of the
704 .I reference dictionary
706 At the end of any pass,
709 compares as identical to
712 (or the corresponding file named by the
713 .BR \%\-\-reference\-dictionary =\c
717 .I reference dictionary
718 compilation is terminated,
720 .I document reference map
721 is appended to this intermediate file,
722 for inclusion in the final formatting passes.
729 in which \*(lqTable of Contents\*(rq entries are collected,
730 to facilitate relocation before the body text,
731 on ultimate output to the
740 in which the body text is collected prior to ultimate output to the
743 in the proper sequence,
749 .\" --------------------------------------------------------------------
753 .BR groff (@MAN1EXT@)
754 for the definitive reference to document formatting with
758 provides a superset of all
761 .BR groff (@MAN1EXT@)
762 may also be considered to be the definitive reference to all
766 with this document providing the reference to
773 imposes neither any restriction on, nor any requirement for,
774 the use of any specific
776 macro package, a number of supplied macro packages,
777 and in particular those associated with the package
779 are best suited for use with
781 as the preferred formatter.
782 Detailed documentation on the use of these packages may be found,
783 in PDF format, in the reference guide
784 .BR "\*(lqPortable Document Format Publishing with GNU Troff\*(rq" ,
785 included in the installed documentation set as
786 .BR \%@PDFDOCDIR@/pdfmark.pdf .
789 .\" --------------------------------------------------------------------
792 Copyright \(co 2005, 2006, 2007 Free Software Foundation, Inc.
795 This man page is distributed under the terms of the
796 GNU Free Documentation License (FDL), version 1.1 or later,
800 It was originally written by
801 .MT keith.d.marshall@\:ntlworld.com
804 who also wrote the implementation of the
806 program, to which it relates.
809 You should have received a copy of the FDL as part of the
811 distribution; it is also available on\-line, at
812 .UR http://\:www.gnu.org/\:copyleft/\:fdl.html
813 the GNU copyleft site
816 .\" --------------------------------------------------------------------
817 .\" EOF / vim: ft=groff