|
From: | Doug Duvall |
Subject: | cannot get rid of borders |
Date: | Mon, 26 Mar 2012 15:33:33 +0000 |
To whom it may concern:
I am using Red Hat Linux: Linux rhel5-dev 2.6.18-274.17.1.el5PAE
“a2ps” version is: a2ps 4.13
I am trying to eliminate the borders around the virtual pages. I have the configuration set to no borders:
Sheets: ------- medium = Letter, landscape page layout = 2 x 1, rows first borders = no file alignment = page interior margin = 0
I also use the following command line:
a2ps --portrait --columns=1 --no-header --margin=0 -l100 --borders=no --output=MyText.ps MyText.txt
When I execute the following ghostscript command and open up the file in Acrobat, I get borders:
gs -sDEVICE=pdfwrite -sOutputFile=MyText.pdf -dNOPAUSE –dBATCH MyText.ps
In the “MyText.ps” file that is created by a2ps, the following function is found:
% Function border: prints virtual page border /border { %def gsave % print four sides 0 setgray x v get y v get moveto 0.7 setlinewidth % of the square pw 0 rlineto 0 ph neg rlineto pw neg 0 rlineto closepath stroke grestore } bind def
If I remove this function from MyText.ps and then use the ghostscript command, no borders are printed.
Is this a bug? What am I missing? Shouldn’t the “--borders=” no eliminate the borders around virtual pages? I am sending you the files. “MyText.ps” still has the above function in it.
Doug Duvall |
MyText.ps
Description: MyText.ps
MyText.txt
Description: MyText.txt
[Prev in Thread] | Current Thread | [Next in Thread] |