Linux emacs printing problem.

Posted on 2005-05-09
Last Modified: 2011-10-03
Linux emacs printing problem (cups-lpr).

I have an MFC3820CN Brother printer that runs with a cups driver supplied by Brother.  

When I print a buffer in emacs the printer starts printing too low on the paper and causes a second sheet to be used for the last three or so lines that should have been on the previous sheet of paper.   In other words two sheets of paper are used per page because the top margin is too big.

This same problem happens with gLabels label software, so it's not an emacs problem.  Neither software uses the regular cups drivers directly.  I assume they are using cups-lpr.

All programs that are using the Cups driver are printing fine.

Does anyone have any idea what might be causing this problem.

Question by:ibanja
    LVL 3

    Accepted Solution


    Author Comment


    Thanks maimon22 - I'm halfway there.  The glabels software is printing fine now, but emacs is not.  Although the print is now higher on the page with the emacs printout, it still puts the last 2 lines on a second sheet of paper.  

    emacs adds a header to the printout with the date, time, filename, and page number. This header info starts one line (one character height) from the top. It then skips two lines and prints to the very bottom of the page (less than a character height from bottom). It then prints two lines on the following page (one character height from top) and ejects that page, continuing until all pages are printed.

    I am wondering if I am not properly setting the default paper type to "letter".

    I have the following line in my .emacs file.
    (setq ps-paper-type 'letter)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    New! My Passport Wireless Pro Wi-Fi Mobile Storage

    Portable wireless storage to offload, edit, and stream anywhere.

    High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

    In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
    In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now