DPOST(1)
π NAME π
DPOST(1) (User Commands) β dpost is the troff postprocessor for PostScript printers. That's the whole gig, bestie: troff files go in, PostScript comes out. π
β¨ SYNOPSIS β¨
dpost [-c num] [-e num] [-m num] [-n num] [-o list] [-p mode] [-w num]
[-x num] [-y num] [-F dir] [-H dir] [-L file] [-M marks] [-O] [-T
name] [file] ...
πΈ DESCRIPTION πΈ
Okay so dpost translates files created by troff(1) into PostScript and writes the results on the standard output. If no files are specified, or if - is one of the input files, the standard input is read. The following options are accepted:
π OPTIONS π
-c numβ Printnumcopies of each page. By default only one copy is printed.-e numβ Sets the text encoding level tonum. The recognized choices are digits between0and5.0uses the PostScriptashowoperator, and produces output essentially identical to previous versions ofdpost.1also usesashowbut integrates motion commands with text commands.2uses the PostScriptawidthshowoperator, computing space widths in PostScript.3also usesawidthshowbut computes space widths indpost.4usesashow, storing position as differences.5emits the same commands as4but in a binary PostScript Level 2 representation.
The default is 3 with the ps device.
-m numβ Magnify each logical page by the factornum. Pages are scaled uniformly about the origin, which is located near the upper left corner of each page. The default magnification is1.0.-n numβ Printnumlogical pages on each piece of paper, wherenumcan be any positive integer. By default,numis set to1.-o listβ Print those pages for which numbers are given in the comma-separatedlist. Thelistcontains single numbersNand rangesN1βN2. A missingN1means the lowest numbered page, a missingN2means the highest. The page range is an expression of logical pages rather than physical sheets of paper. For example, if you are printing two logical pages to a sheet, and you specified a range of4, then two sheets of paper would print, containing four page layouts. If you specified a page range of3-4, when requesting two logical pages to a sheet; then only page3and page4layouts would print, and they would appear on one physical sheet of paper.-p modeβ Print files in either portrait or landscape mode. Only the first character ofmodeis significant. The default mode is portrait.-w numβ Set the line width used to implementtroffgraphics commands tonumpoints, where a point is approximately1/72of an inch. By default,numis set to0.3points.-x numβ Translate the originnuminches along the positive x axis. The default coordinate system has the origin fixed near the upper left corner of the page, with positive x to the right and positive y down the page. Positivenummoves everything right. The default offset is0inches.-y numβ Translate the originnuminches along the positive y axis. Positivenummoves text up the page. The default offset is0.-F dirβ Usediras the font directory. The defaultdiris/usr/share/heirloom-doctools/font, anddpostreads binary font files from directory/usr/share/heirloom-doctools/font/devps.-H dirβ Usediras the host resident font directory. Files in this directory should be complete PostScript font descriptions, and must be assigned a name that corresponds to the appropriate two-character troff font name. Each font file is copied to the output file only when needed and at most once during each job. There is no default directory.-L fileβ Usefileas the PostScript prologue which, by default, is/usr/share/heirloom-doctools/font/devpost/postscript/dpost.ps.-M marksβ Print marks (in combination with thetrimattroff request). Valid types of marks are:cutmarks,registrationmarks,startargets,colorbars, andall. Mark names can be abbreviated and combined by colons, e.g.-Mcut:regwill print cut marks and registration marks.-Oβ Disables PostScript picture inclusion. A recommended option whendpostis run by a spooler in a networked environment.-T nameβ Use font files for devicenameas the best description of available PostScript fonts. By default,nameis set topsanddpostreads files from/usr/share/heirloom-doctools/font/devps.
The files should be prepared by troff. The default font files in /usr/share/heirloom-doctools/font/devps produce the best output. They assume a resolution of 72000 dpi, and can be used to format files by adding the -Tps option to the troff call.
dpost makes no assumptions about resolutions. The first x res command sets the resolution used to translate the input files, the DESC file, usually /usr/share/heirloom-doctools/font/devps/DESC, defines the resolution used in the binary font files, and the PostScript prologue is responsible for setting up an appropriate user coordinate system.
π¦ EXAMPLES π¦
Literally the pipeline of dreams:
pic file | tbl | eqn | troff -mm -Tps | dpost
π FILES π
/usr/share/heirloom-doctools/font/devps/*/usr/share/heirloom-doctools/font/devpost/charlib/*/usr/share/heirloom-doctools/font/devpost/postscript/dpost.ps/usr/share/heirloom-doctools/font/devpost/postscript/color.ps/usr/share/heirloom-doctools/font/devpost/postscript/cutmarks.ps/usr/share/heirloom-doctools/font/devpost/postscript/draw.ps/usr/share/heirloom-doctools/font/devpost/postscript/forms.ps/usr/share/heirloom-doctools/font/devpost/postscript/ps.requests/usr/share/heirloom-doctools/tmac/pictures/usr/share/heirloom-doctools/tmac/color
π SEE ALSO π
troff(1) β that's the one, bestie.
π¦ DIAGNOSTICS π¦
The following exit values are returned:
0β Successful completion.non-zeroβ An error occurred.
π NOTES π
Caution era: Althoughdpostcan handle files formatted for any device, emulation is expensive and can easily double the print time and the size of the output file. No attempt has been made to implement the character sets or fonts available on all devices supported bytroff. Missing characters will be replaced by white space, and unrecognized fonts will usually default to one of the Times fonts (that is,R,I,B, orBI).
An x res command must precede the first x init command, and all the input files should have been prepared for the same output device.
Use of the -T option is not encouraged. Its only purpose is to enable the use of other PostScript font and device description files, that perhaps use different resolutions, character sets, or fonts.
xoxo, Heirloom Documentation Tools Β· 2/7/07 Β· DPOST(1) signing off ππ«Άπ
π¦ where this page comes from
- alpine 3.24: heirloom-doctools-doc 191015-r6 Β· CDDL-1.1
- Copyright 1989 AT&T Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved
- Copyright (c) 2007 Gunnar Ritter, Freiburg i. Br., Germany
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms