12-28-2019
The groff dot directives do not have any effect with Postscript.
Assuming that you are using letter size paper and not A4, there are 72*11 points vertically on the page, reduce that to 720 for half inch top and bottom margins, and you need to specify an 11 point font with a one point gap to get 60 lines per page.
If you want to add font changes and graphics within the finished pdf document then you have to add Postscript code into the text.
There are two files README and README.ESCAPES that come with the full enscript package, but they end up in /usr/share/doc/enscript, at least on Linux Mint.
This User Gave Thanks to jgt For This Post:
10 More Discussions You Might Find Interesting
1. AIX
I need to conver a PCL or PDF file to text in AIX, and I don´t know how. (0 Replies)
Discussion started by: 10789
0 Replies
2. Shell Programming and Scripting
Hi
I need to create multiple text files from onc text file on AIX. The data of text files is as below:
**********************************************
**********************************************
DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009
Copyright (c) 1982,... (11 Replies)
Discussion started by: lodhi1978
11 Replies
3. SCO
Currently own an SCO OpenServer 6 system. Will like to know how to convert files printed to PDF so they can be sent to customers via e-mail. Ex. account statements. (4 Replies)
Discussion started by: RicardoM
4 Replies
4. HP-UX
I am looking for a tool to convert text file into pdf on HP-UX platform.
Current version of OS -
$ uname -a
HP-UX XXXXXXX B.11.23 U ia64 4125393404 unlimited-user license
I'm able to get "ClibPDF-2.02"; A library for creating PDF files on HP-UX 11.00, PA-RISC 1.1
Not sure if... (2 Replies)
Discussion started by: mail4usr
2 Replies
5. Shell Programming and Scripting
hello everyone,
i really need your help to write a script which would just print following kind of result into a text file (result.txt)
XYZ test Results
ID: <unique-id> Date: <date>
-------------------------------------------------
| Task | Result | Time |... (3 Replies)
Discussion started by: viriimind
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
We have an app specific legacy environment running SCO Openserver 5.0.7. I need to be able to (1) scan a pre-existing “form” consisting of logo/boxes/lines/static text as an image , (2) lay a print file from the app "on top of the image" and (3) output the "merge" as a PDF file.
Scanning... (1 Reply)
Discussion started by: 65bit
1 Replies
7. Red Hat
Can someone please tell me why this is not working? I have created numerous pdf's from text files by following these instructions and this time it is not working.
Convert jpeg files to PDF under Linux | bitPrison.net
convert /home/liveuser/Documents/hw7 /home/liveuser/Documents/hw7.pdf... (5 Replies)
Discussion started by: cokedude
5 Replies
8. Shell Programming and Scripting
I need to be able to take the results from ls -l command and modify the output as follows:
I will run
ls -l *.mak
My results will be
aa.mak
bb.mak
cc.mak
I then need to take those results and create a file that has the following info:
dsjj/ubin/aa
dsjj/ubin/bb
dsjj/ubin/cc
... (3 Replies)
Discussion started by: jclanc8
3 Replies
9. Shell Programming and Scripting
Hi all,
I'm trying to create a script to merge a csv or txt file with a pdf template. So i have a pdf template with company logo and i want to merge it with a csv or txt file so i can create a complete invoice in pdf.
now i do find some command line tools to do this but i need a pro version... (3 Replies)
Discussion started by: dicenl
3 Replies
10. Red Hat
Hi,
I am in need of help. My requirements are :
1) To convert the existing files (irrespective of their format) in a directory to PDF format
2) To make the converted files password protected.
I did the attempt to do the same. Though the existing files (irrespective of their format) are... (1 Reply)
Discussion started by: MKR
1 Replies
LEARN ABOUT MOJAVE
tk_getfontmetrics
Tk_FontId(3) Tk Library Procedures Tk_FontId(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_FontId, Tk_GetFontMetrics, Tk_PostscriptFontName - accessor functions for fonts
SYNOPSIS
#include <tk.h>
Font
Tk_FontId(tkfont)
Tk_GetFontMetrics(tkfont, fmPtr)
int
Tk_PostscriptFontName(tkfont, dsPtr)
ARGUMENTS
Tk_Font tkfont (in) Opaque font token being queried. Must have been returned by a previous call to Tk_GetFont.
Tk_FontMetrics *fmPtr (out) Pointer to structure in which the font metrics for tkfont will be stored. See DATA STRUCTURES below for
details.
Tcl_DString *dsPtr (out) Pointer to an initialized Tcl_DString to which the name of the Postscript font that corresponds to
tkfont will be appended.
_________________________________________________________________
DESCRIPTION
Given a tkfont, Tk_FontId returns the token that should be selected into an XGCValues structure in order to construct a graphics context
that can be used to draw text in the specified font.
Tk_GetFontMetrics computes the ascent, descent, and linespace of the tkfont in pixels and stores those values in the structure pointer to
by fmPtr. These values can be used in computations such as to space multiple lines of text, to align the baselines of text in different
fonts, and to vertically align text in a given region. See the documentation for the font command for definitions of the terms ascent,
descent, and linespace, used in font metrics.
Tk_PostscriptFontName maps a tkfont to the corresponding Postscript font name that should be used when printing. The return value is the
size in points of the tkfont and the Postscript font name is appended to dsPtr. DsPtr must refer to an initialized Tcl_DString. Given a
"reasonable" Postscript printer, the following screen font families should print correctly:
Avant Garde, Arial, Bookman, Courier, Courier New, Geneva, Helvetica, Monaco, New Century Schoolbook, New York, Palatino, Symbol,
Times, Times New Roman, Zapf Chancery, and Zapf Dingbats.
Any other font families may not print correctly because the computed Postscript font name may be incorrect or not exist on the printer.
DATA STRUCTURES
The Tk_FontMetrics data structure is used by Tk_GetFontMetrics to return information about a font and is defined as follows:
typedef struct Tk_FontMetrics {
int ascent;
int descent;
int linespace;
} Tk_FontMetrics;
The ascent field is the amount in pixels that the tallest letter sticks up above the baseline, plus any extra blank space added by the
designer of the font.
The descent is the largest amount in pixels that any letter sticks below the baseline, plus any extra blank space added by the designer of
the font.
The linespace is the sum of the ascent and descent. How far apart two lines of text in the same font should be placed so that none of the
characters in one line overlap any of the characters in the other line.
SEE ALSO
font(n), MeasureChar(3)
KEYWORDS
font, measurement, Postscript
Tk 8.0 Tk_FontId(3)