unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Postscript  printing on A4
@ 2006-11-11 22:47 Piet van Oostrum
  2006-11-12  0:04 ` Vinicius Jose Latorre
  0 siblings, 1 reply; 2+ messages in thread
From: Piet van Oostrum @ 2006-11-11 22:47 UTC (permalink / raw)


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?
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Postscript  printing on A4
  2006-11-11 22:47 Postscript printing on A4 Piet van Oostrum
@ 2006-11-12  0:04 ` Vinicius Jose Latorre
  0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Jose Latorre @ 2006-11-12  0:04 UTC (permalink / raw)
  Cc: emacs-devel

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 <http://www.cups.org/doc-1.1/sum.html> 
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?
>   

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-12  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-11 22:47 Postscript printing on A4 Piet van Oostrum
2006-11-12  0:04 ` Vinicius Jose Latorre

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).