https://github.com/philips/text2pdf
Convert text files to pdf
https://github.com/philips/text2pdf
Last synced: 11 months ago
JSON representation
Convert text files to pdf
- Host: GitHub
- URL: https://github.com/philips/text2pdf
- Owner: philips
- Created: 2010-08-27T17:35:08.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-08-27T17:37:47.000Z (almost 16 years ago)
- Last Synced: 2025-04-08T18:54:37.042Z (about 1 year ago)
- Language: C
- Homepage: http://www.eprg.org/pdfcorner/text2pdf/
- Size: 164 KB
- Stars: 20
- Watchers: 6
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
I did not write this code. I brought it into a git repo because it is
easier than wget'ting the files every time I need them from the author's
page:
http://www.eprg.org/pdfcorner/text2pdf/
text2pdf [options] [filename]
text2pdf makes a 7-bit clean PDF file (version 1.1) from any input file.
It reads from standard input or a named file, and writes the PDF file
to standard output.
There are various options as follows:
-h show this message
-f use PostScript (must be in standard 14, default: Courier)
-I use ISOLatin1Encoding
-s use font at given pointsize (default 10)
-v use given line spacing (default 12 points)
-l lines per page (default 60, determined automatically
if unspecified)
-c maximum characters per line (default 80)
-t spaces per tab character (default 8)
-F ignore formfeed characters (^L)
-A4 use A4 paper (default Letter)
-A3 use A3 paper (default Letter)
-x independent paper width in points
-y independent paper height in points
-2 format in 2 columns
-L landscape mode
Note that where one variable is implied by two options, the second option
takes precedence for that variable. (e.g. -A4 -y500)
In landscape mode, page width and height are simply swapped over before
formatting, no matter how or when they were defined.
text2pdf v1.1 (c) Phil Smith, 1996