19 questions
0
votes
1
answer
136
views
Starting page numbers at 600
I use enscript to add page numbers to PDF files generated from libreoffice.
I use the following script and have always started numbering at page 1.
Now I want to start numbering at page 600 and my ...
0
votes
1
answer
30
views
enscript error: must print at least one line per page: --no-header
I'm getting the following error using RedHat 8 after an upgrade from RedHat 7:
error: must print at least one line per page: --no-header
Why won't it print a blank page?
-1
votes
1
answer
145
views
enscript under macOS - specify location of afm files?
Under macOS (Monterey), I'm trying to print text files with a specified font, unlike lpr which uses Monaco, and unlike nenscript (which I was able to build for macOS) which uses only Courier. The ...
0
votes
2
answers
83
views
Enscript: where is the AFM folder located at on OSX?
I installed enscript thru brew install enscript
Normally AFM folder located at /usr/share/enscript/afm but no such directory.
2
votes
3
answers
2k
views
How to convert txt to pdf with utf-8?
I use the following command to convert txt to ps. Then convert ps to pdf.
enscript --header='Page $% of $=' --word-wrap -o output.ps 2>/dev/null < input.txt
But it does not work for utf-8 input....
0
votes
1
answer
2k
views
Windows convert text file to postscript and print
In Windows how can I use RedMon EE , Ghostscript, GSview , Nenscript for Windows to convert a text file to postcript and redirect it to a printer .
Something like to configure "RPT1: Redirected Port"...
0
votes
0
answers
437
views
replace or remove text on file PDF with sed, dont'work
replace or remove text on file PDF with sed
Good evening, i'm testing with the bash script for to replace text with new text on file PDF, i've resolved with the file exported from file txt to file ...
2
votes
0
answers
358
views
Using mac fonts with enscript
I'm using GNU enscript on a MacBook pro
this command works
enscript -G --line-numbers -f Helvetica@11 -p out1 file.txt
I'd like to be able to use some of the
native mac fonts - is there a way to ...
0
votes
2
answers
983
views
Convert all files of a specified extension within a directory to pdf, recursively for all sub-directories
I'm using the following code (from this answer) to convert all CPP files in the current directory to a file named code.pdf and it works well:
find . -name "*.cpp" -print0 | xargs -0 enscript -Ecpp -...
1
vote
1
answer
316
views
what happens to the js code inside EM_ASM?
In Enscripten what happens to the code inside EM_ASM function? I mean if that code get compiled or interpreted at runtime? If compiled then if that runs faster or slower than native interpreted js in ...
0
votes
1
answer
2k
views
PDF generated in Linux does not open in Windows - using enscript
My professor and I both use Linux to run some CFD codes, but both our PDF outputs from enscript do not open on Windows (which the TA uses to correct my assignment). The pdf's open without a problem in ...
1
vote
1
answer
419
views
Printing colorful syntax highlighting to paper
I want to print out some code on paper including syntax highlighting.
After some research, I found out, that I could do this with pygments and enscript, but don't know how to combine these tools. ...
1
vote
1
answer
1k
views
How to change the syntax highlight color in GNU Enscript?
GNU Enscript is a free replacement for Adobe enscript program, and I downloaded it for syntax highlighting and *.ps output, but can I change the default color model? I found that there is a file ...
2
votes
1
answer
2k
views
Permission denied when adding enscript command as alias in bash_profile
Via this post, I am using the following command to export all .java files recursively in a directory to PDF form (files.pdf):
enscript -r -1 --file-align=2 --font=Courier7 --pretty-print=java --line-...
3
votes
1
answer
2k
views
Linux enscript multiple text files to a single PostScript file
I'm using this code to create a text file from our application, convert it to PostScript using enscript and then convert it to PDF.
function print_order
{
ORDERFORM="Sales Order"
PARAMFILE="$1....