bug-a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot get rid of borders


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

"We understand that e-mail is a simple and cost effective method of communication, however items such as requests and inquiries needing immediate attention should not be sent via e-mail. Also, sensitive personal and account information like account numbers, Social Security numbers, passwords, or PIN numbers should not be sent by e-mail. Because an e-mail message may not be immediately reviewed by a company representative, you should contact the company by telephone, or in person for items needing immediate attention. Furthermore, this e-mail and any attached files may contain confidential and/or privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive this e-mail for the recipient), please contact the sender by reply e-mail and delete all copies of this email"

Attachment: MyText.ps
Description: MyText.ps

Attachment: MyText.txt
Description: MyText.txt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]