Questions tagged [enscript]

18 questions
9
votes
1 answer

How shall I generate a pdf file instead of a ps file using enscript?

I was wondering why the following generates a ps file not a pdf file? How can I make it generate a pdf file? Thanks. $ enscript -B -PPDF code/bloom.c -o bloom.pdf [ 2 pages * 1 copy ] left in bloom.pdf $ file bloom.pdf bloom.pdf: PostScript…
Tim
  • 98,580
  • 191
  • 570
  • 977
7
votes
2 answers

How to convert ęąśćżńł TXT to PDF with enscript?

I have problem converting a file to PDF. I create the file with echo ęąśćżńł > text and convert: enscript -O text -o - | ps2pdf - out.pdf However, out.pdf has an encoding problem:
Miko
  • 71
  • 2
6
votes
1 answer

How to handle accents with enscript?

I cannot figure out how to handle accents with enscript when converting a txt into a pdf: echo "élisée" | enscript -o - -X | ps2pdf - output.pdf I tried all possible encoding but none are leading to the proper result. I guess I should…
user123456
  • 4,758
  • 11
  • 52
  • 78
5
votes
1 answer

Specifying font with enscript

I've read the man page for enscript but cannot find the answer to this problem. I am trying to print using enscript with a downloaded AFM file but I can't get it to work. I keep getting the following error: $ enscript foo.txt -B -f OCRA10 -p - >…
AnonSubmitter85
  • 221
  • 2
  • 6
2
votes
1 answer

Enscript: How to use a different font?

I downloaded the font RobotoMono-Regular.ttf here, converted it to RobotoMono-Regular.afm with this tool and copied this file to /usr/local/share/enscript/afm where other .afm files reside. In there is also the file font.map. I added the entry…
Marius Hofert
  • 450
  • 2
  • 6
  • 15
2
votes
1 answer

How do I process text before I hand it over to enscript? (Or how do I print UTF8 Mutt messages to PDF?)

I'm trying to use enscript to print PDFs from Mutt, and hitting character encoding issues with curly quotes. So that an email with text like this: “very dirty” we’re Comes out as: â\200\234very dirtyâ\200\235 weâ\200\231re My print script…
Amanda
  • 1,709
  • 2
  • 13
  • 26
1
vote
1 answer

Does enscript support underline for texts

I need to print some portion of input text data with an underline. We are currently using Perl script to generate the text file and the 'enscript' & 'ps2pdf' to generate the PDF files of generated text files. Need some portions of texts in PDF as…
1
vote
1 answer

Text vertical alignment in Enscript

Is there any option for vertical text alignment within a line in Enscript? I have to align the text in the vertical middle of the background. The text script: push (@parts_section_array, sprintf(border("#")."%4s".'~bggray{0.85}'." Part Number %9s …
1
vote
0 answers

Using enscript, need first line to be of different font size

I'm using enscript piped to ps2pdf to convert text files to pdf. The content of the file is the result of an SQL query with column names serving as header. I'm already using -B to eliminate default file name header, -r for landscape format and…
0
votes
0 answers

Is it possible to convert a pdf file to post script, then to text for see codes used in post script?

I have one pdf file where text have been formatted in tables, boxes, background colours. I tried to convert my text file to pdf with boxes, tables and background colours with enscript. I got success for foreground and background colours, but no…
Kalpesh Bhoj
  • 192
  • 1
  • 10
0
votes
0 answers

Add border arond text in pdf

I have large database in text format.I convert them in particular format using awk. While using awk i have added escape sequence ^ for formatting in enscript like bgcolor,font,color etc. Then i convert same in pdf with ps2pdf command. In awk when i…
Kalpesh Bhoj
  • 192
  • 1
  • 10
0
votes
1 answer

How to include header only for the first page using enscript

I'm using enscript to produce a pdf file. I wish to include a header that contains the filename, like that enscript --header='$n' ... file.py | ps2pdf - file.pdf Every page of the resulted pdf includes a header with the filename. How can I have…
Jona
  • 101
  • 3
0
votes
1 answer

Does enscript support multiple font on same file

My requirement is to print some portion of input in one font( can also be of different size,bold,bg etc) & remaining with another. Is it possible?
0
votes
1 answer

enscript installation - can't find its profile

I have just built an installed enscript {1-6-6} from the tarball. When I try to run it I get: enscript-1.6.6$ bin/enscript -v -Eperl --output=doprint.ps ../doprint.pl AFM: scanning path... AFM: reading font map…
BernieC
  • 1
  • 1
0
votes
1 answer

How can I make `enscript` block till the printer finishes its job?

The following command will create a pdf file under ~/PDF/: enscript -B -P PDF bloom.c I want to move the output pdf file here mv "`ls -dtr1 ~/PDF/* | tail -1`" . But I can't…
Tim
  • 98,580
  • 191
  • 570
  • 977
1
2