From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: Postscript printing on A4 Date: Sat, 11 Nov 2006 22:04:55 -0200 Message-ID: <45566527.4020704@ig.com.br> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163289908 22667 80.91.229.2 (12 Nov 2006 00:05:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2006 00:05:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 01:05:03 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gj2qL-00025s-2l for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2006 01:05:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gj2qK-0002Mv-74 for ged-emacs-devel@m.gmane.org; Sat, 11 Nov 2006 19:05:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gj2qA-0002MX-Bk for emacs-devel@gnu.org; Sat, 11 Nov 2006 19:04:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gj2q8-0002M6-17 for emacs-devel@gnu.org; Sat, 11 Nov 2006 19:04:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gj2q7-0002M3-TU for emacs-devel@gnu.org; Sat, 11 Nov 2006 19:04:47 -0500 Original-Received: from [200.221.4.199] (helo=smtp.uol.com.br) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gj2q7-0006A8-Cu for emacs-devel@gnu.org; Sat, 11 Nov 2006 19:04:47 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by socom2.uol.com.br (Postfix) with ESMTP id 80C2E500326A; Sat, 11 Nov 2006 22:04:46 -0200 (BRST) Original-Received: from [201.72.57.245] (unknown [201.72.57.245]) by socom2.uol.com.br (Postfix) with ESMTP id AB5EC5003C46; Sat, 11 Nov 2006 22:04:43 -0200 (BRST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5 Original-To: Piet van Oostrum In-Reply-To: X-SIG5: eaeebf03fbbb2d8f9f7f70b2a9ddf7da X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62085 Archived-At: Hi Piet, You could try to set `ps-lpr-switches' variable to force the printer to use A4, if the printer supports A4. The CUPS Software Users Manual says that to set the media size, type and/or source you have to use the option "-o media=X" where X is the media size, as in the command line: lp -o media=Letter filename lp -o media=A4 filename lpr -o media=Letter filename lpr -o media=A4 filename So, you could try to set in your ~/.emacs (or equivalent in Mac OS X): (setq ps-lpr-switches '("-o media=A4")) Regards, Vinicius Piet van Oostrum wrote: > I am using Emacs 22.0.90 (less than a week old) on Mac OS X 10.4.8. > > I had problems printing on A4 paper with Postscript Print Buffer > (ps-print-buffer-with-faces). I have ps-paper-type set to a4 and the > resulting Postscript contains: > > %%DocumentMedia: A4 595 842 0 () () > and > %%PageMedia: A4 > > Nevertheless the printer requests letter size paper and when I force it to > use A4, the top op the text is chopped off. > > It seems that CUPS is not honoring the %%DocumentMedia and %%PageMedia > comments. Is this normal? Or is this a macosx specific problem? > > For the time being I solved it by the using lpoptions command to make A4 > the default, however this would make it impossible to use other formats, > e.g. photo's I presume. > > Is the same problem appearing on other systems that use CUPS? >