unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21741: 24.5; default printer page size can not be changed
@ 2015-10-23  0:55 Emilio Sovero
  2015-10-23  4:00 ` Glenn Morris
  2015-10-23 17:29 ` Emilio Sovero
  0 siblings, 2 replies; 9+ messages in thread
From: Emilio Sovero @ 2015-10-23  0:55 UTC (permalink / raw)
  To: 21741

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
other size but A4.
I have set the ps-page-size to letter
That page size letter is defined in the data base properly. But when I
print a buffer it sends a A4 page. No matter what I change it to it
always prints in A4 (which my printer hangs on).






In GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57)
of 2015-05-30 on new-host-5.home
Windowing system distributor `Apple', version 10.3.1348
Configured using:
`configure --with-ns'

Important settings:
locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils easymenu printing ps-print ps-def lpr
re-builder time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 85450 5173)
(symbols 48 18200 0)
(miscs 40 77 82)
(strings 32 13532 4417)
(string-bytes 1 402877)
(vectors 16 10025)
(vector-slots 8 383404 10871)
(floats 8 372 221)
(intervals 56 202 0)
(buffers 960 12))


Emilio Sovero


[-- Attachment #2.1: Type: text/html, Size: 24452 bytes --]

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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  0:55 bug#21741: 24.5; default printer page size can not be changed Emilio Sovero
@ 2015-10-23  4:00 ` Glenn Morris
  2015-10-23  4:44   ` Emilio Sovero
  2015-10-23 17:29 ` Emilio Sovero
  1 sibling, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2015-10-23  4:00 UTC (permalink / raw)
  To: Emilio Sovero; +Cc: 21741

Emilio Sovero wrote:

> On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
> other size but A4.

That is odd, since Emacs is a USA-centric application and defaults to
letter paper size AFAIK.

> I have set the ps-page-size to letter

There is no "ps-page-size". There is ps-paper-type, defaulting to 'letter.

Anyway, please do:

emacs -Q
C-u M-x ps-print-buffer RET test.ps RET

and send the file test.ps here as an attachment. Thanks.





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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  4:00 ` Glenn Morris
@ 2015-10-23  4:44   ` Emilio Sovero
  2015-10-23  4:51     ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Emilio Sovero @ 2015-10-23  4:44 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 21741

[-- Attachment #1: Type: text/plain, Size: 67 bytes --]

Yes I meant ps-page-type.
Here is the output you requested.
Thanks

[-- Attachment #2: test.ps --]
[-- Type: application/postscript, Size: 35478 bytes --]

[-- Attachment #3: Type: text/plain, Size: 574 bytes --]


Emilio Sovero

> On Oct 22, 2015, at 9:00 PM, Glenn Morris <rgm@gnu.org> wrote:
> 
> Emilio Sovero wrote:
> 
>> On a Mac running OSX 10.10.5 I am unable to change Emacs to print any
>> other size but A4.
> 
> That is odd, since Emacs is a USA-centric application and defaults to
> letter paper size AFAIK.
> 
>> I have set the ps-page-size to letter
> 
> There is no "ps-page-size". There is ps-paper-type, defaulting to 'letter.
> 
> Anyway, please do:
> 
> emacs -Q
> C-u M-x ps-print-buffer RET test.ps RET
> 
> and send the file test.ps here as an attachment. Thanks.


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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  4:44   ` Emilio Sovero
@ 2015-10-23  4:51     ` Glenn Morris
  2015-10-23  4:57       ` Emilio Sovero
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2015-10-23  4:51 UTC (permalink / raw)
  To: Emilio Sovero; +Cc: 21741

Emilio Sovero wrote:

> Here is the output you requested.

Thanks. That PS seems in every way to be letter-sized, so I have no idea
why it prints as A4 for you.





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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  4:51     ` Glenn Morris
@ 2015-10-23  4:57       ` Emilio Sovero
  2015-10-23 17:05         ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Emilio Sovero @ 2015-10-23  4:57 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 21741

Glenn,
But if you read the test.ps file the margins are set for the A4 paper size. See the fragment below.

%%EndResource

/LandscapeMode       false def
/UpsideDown          false def
/NumberOfColumns     1 def
/LandscapePageHeight 792.0 def
/PrintPageWidth      498.6141732283465 def
/PrintWidth   498.6141732283465 def
/PrintHeight  643.7029732283465 def

Emilio

> On Oct 22, 2015, at 9:51 PM, Glenn Morris <rgm@gnu.org> wrote:
> 
> Emilio Sovero wrote:
> 
>> Here is the output you requested.
> 
> Thanks. That PS seems in every way to be letter-sized, so I have no idea
> why it prints as A4 for you.






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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  4:57       ` Emilio Sovero
@ 2015-10-23 17:05         ` Glenn Morris
  0 siblings, 0 replies; 9+ messages in thread
From: Glenn Morris @ 2015-10-23 17:05 UTC (permalink / raw)
  To: Emilio Sovero; +Cc: 21741

Emilio Sovero wrote:

> But if you read the test.ps file the margins are set for the A4 paper
> size. See the fragment below.
>
> %%EndResource
>
> /LandscapeMode       false def
> /UpsideDown          false def
> /NumberOfColumns     1 def
> /LandscapePageHeight 792.0 def
> /PrintPageWidth      498.6141732283465 def
> /PrintWidth   498.6141732283465 def
> /PrintHeight  643.7029732283465 def


Which bit of this is supposed to be A4?





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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23  0:55 bug#21741: 24.5; default printer page size can not be changed Emilio Sovero
  2015-10-23  4:00 ` Glenn Morris
@ 2015-10-23 17:29 ` Emilio Sovero
  2015-10-23 17:36   ` Glenn Morris
  1 sibling, 1 reply; 9+ messages in thread
From: Emilio Sovero @ 2015-10-23 17:29 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 21741

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

The 
/PrintPageWidth 498.6141732283465 def
Dimensions are in points.

I will dig into the Postscript code this week.
The problem for me is that at work we have a Large shared printer server that if the job asks for a paper size it does not have (A4), the only option the printer offers me is to load the missing paper size (which is not practical). There is not way (that I know) to override it and print on a letter sized paper.
At home I have two printers HP2605dn that has a similar message but allows me override the paper size, and a Brother MFC7860DW that prints without problem 

Thanks for the help. I hope I am not causing too much distraction for you.
Emilio

On Oct 23, 2015, at 10:05 AM, Glenn Morris <rgm@gnu.org> wrote:

Emilio Sovero wrote:

But if you read the test.ps file the margins are set for the A4 paper
size. See the fragment below.

%%EndResource

/LandscapeMode false def
/UpsideDown false def
/NumberOfColumns 1 def
/LandscapePageHeight 792.0 def
/PrintPageWidth 498.6141732283465 def
/PrintWidth 498.6141732283465 def
/PrintHeight 643.7029732283465 def


Which bit of this is supposed to be A4?

[-- Attachment #2.1: Type: text/html, Size: 2866 bytes --]

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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23 17:29 ` Emilio Sovero
@ 2015-10-23 17:36   ` Glenn Morris
  2021-09-19 22:29     ` Stefan Kangas
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2015-10-23 17:36 UTC (permalink / raw)
  To: Emilio Sovero; +Cc: 21741

Emilio Sovero wrote:

> The 
>
>     /PrintPageWidth 498.6141732283465 def
>
> Dimensions are in points.

?
Letter page is 8.5 inches wide = 612 points.

ps-left-margin = ps-right-margin = 2cm = 56.7 points

612 - 2 * 56.7 = 498.6

So everything looks fine to me. (Surely the margins can't influence the
physical paper size anyway?)

gv tells me the resulting ps is letter-sized.
ps-print hasn't changed in time immemorial, AFAIK.





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

* bug#21741: 24.5; default printer page size can not be changed
  2015-10-23 17:36   ` Glenn Morris
@ 2021-09-19 22:29     ` Stefan Kangas
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Kangas @ 2021-09-19 22:29 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 21741-done, Emilio Sovero

Glenn Morris <rgm@gnu.org> writes:

> Emilio Sovero wrote:
>
>> The
>>
>>     /PrintPageWidth 498.6141732283465 def
>>
>> Dimensions are in points.
>
> ?
> Letter page is 8.5 inches wide = 612 points.
>
> ps-left-margin = ps-right-margin = 2cm = 56.7 points
>
> 612 - 2 * 56.7 = 498.6
>
> So everything looks fine to me. (Surely the margins can't influence the
> physical paper size anyway?)
>
> gv tells me the resulting ps is letter-sized.
> ps-print hasn't changed in time immemorial, AFAIK.

The last reply here has Glenn saying "everything looks fine to me", and
there have been no further replies within six years.  I'm therefore
closing this bug report.

If this conclusion is incorrect and this is still an issue, please reply
to this email (use "Reply to all" in your email client) and we can
reopen the bug report.





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

end of thread, other threads:[~2021-09-19 22:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23  0:55 bug#21741: 24.5; default printer page size can not be changed Emilio Sovero
2015-10-23  4:00 ` Glenn Morris
2015-10-23  4:44   ` Emilio Sovero
2015-10-23  4:51     ` Glenn Morris
2015-10-23  4:57       ` Emilio Sovero
2015-10-23 17:05         ` Glenn Morris
2015-10-23 17:29 ` Emilio Sovero
2015-10-23 17:36   ` Glenn Morris
2021-09-19 22:29     ` Stefan Kangas

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).