cannot get rid of borders

Doug Duvall <[email protected]> Mon, 26 Mar 2012 15:33:33 +0000
Newsgroups gmane.comp.printing.a2ps.bugs
Message-ID <19998542.802612.1332776014761.JavaMail.root@emg-ca-2-1>
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"
MyText.ps (application/postscript, 24.6 KB) - not displayed
MyText.txt (text/plain, 6.2 KB)

        ________________________________________________________________________________
        Sharp Bank Accounting System                                      March 22, 2012
        Booting and Taking Down the Computer                                    11:59:26
        ________________________________________________________________________________

        First National Bank of Baird
        P.O. Box 968
        Baird, TX 79504
















                                       Sharp BancSystems

                              Booting and Taking Down the Computer

                                             NOTICE
                                             ______

                          This material is the exclusive confidential
                           property of Sharp BancSystems.  All rights
                               are reserved by Sharp BancSystems.

                             Reproduction of this documentation is
                                      strictly prohibited

        ________________________________________________________________________________
        Sharp Bank Accounting System                                      March 22, 2012
        Booting the Computer                                                    11:59:26
        ________________________________________________________________________________

        1.   Locate the power on switch and turn the computer on.  After a moment, see
             displayed on the console CRT:

             Boot
             ____
             :
             _

        2.   Make sure your caps-lock key if off so that everything you may type in is
             in lower case letters.  Also make sure your num-lock is on so that the
             numeric keypad will be entering numbers.

        3.   Press the ENTER key.  If the computer was shut down properly the last
                       _____
             time, the following message will not appear;  proceed to step 5.  If not
             (such as a power outage) the following will appear on the console CRT:

             The system was not shut down properly, and the root file system needs
             _____________________________________________________________________
             cleaning.
             _________
             Proceed with cleaning (y/n)?
             ____________________________

        4.   Always answer this question y and press ENTER.  On certain instances when
                                         _           _____
             the computer cleans the file systems, it will return to step 2 instead of
             going on to step 5.  Also when the computer cleans the file systems, you
             may also see this message elsewhere in the boot procedure:

             NEED SCRATCH FILE (XX BLKS)  ENTER FILENAME:
             ____________________________________________

             If you see this message, type in scratch and press the ENTER key.
                                              _______               _____

             Certain other questions about "repairing a file" or "clearing a file",
             etc., might appear.  Always answer these questions with Y.
                                                                     _

        5.   See displayed on the console CRT:

             Type CONTROL-d to continue with normal startup,
             _______________________________________________
             (or give the root password for system maintenance):
             ___________________________________________________

        6.   Hold down the Ctrl key and press d.  This will not echo anything on the
                           ____               _
             console CRT.  If by mistake you enter the login id 'root' password you
             will get a # prompt;  just type Ctrl-d to proceed normally.  See the
                                             ______
             following displayed on the console CRT:

             Current system time is Wed Nov 3 14:36:23 PST 1985
             __________________________________________________
             Enter time ([yymmdd]hhmm):
             __________________________

        7.   Always press ENTER to take the data and time that is displayed.  If the
                          _____
             date or time needs changing, you must change it in the computer's BIOS
             setup.

        8.   When the following is displayed on your console CRT, the computer is up
             and you will be able to log in on any and all CRT's.

             login:
             ______



                                             - 1 -

        ________________________________________________________________________________
        Sharp Bank Accounting System                                      March 22, 2012
        Taking Down the Computer                                                11:59:26
        ________________________________________________________________________________

        1.   Log out of your current account and log into root login id (see separate
                                                          ____
             instructions, Logging On the Computer and Logging Off the Computer).
             Notice your prompt will be #.
                                        _

        2.   Make sure that no one is running a program at any other terminal.  They
             should be logged off the computer or at least back to the main menu
             program or the Sharp Bank Accounting System Main Menu.  Type in the
             following:

             shutdown -g0  (numeric 0, then press ENTER         (for UNIX systems)
             ____________                         _____

        3.   When the following is displayed on the console CRT, it is safe to power
             off the computer:

                                   ** Normal System Shutdown **
                                     ** Safe to Power Off **
                                               -or-
                                  ** Press Any Key to Reboot **




































                                             - 2 -