From: Thien-Thi Nguyen <ttn@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: ps-print cuts off footers
Date: Wed, 04 Mar 2015 00:24:46 +0100 [thread overview]
Message-ID: <87lhjdacld.fsf@zigzag.favinet> (raw)
In-Reply-To: <87a8zuv023.fsf@gmail.com> (Rodolfo Medina's message of "Tue, 03 Mar 2015 10:37:40 +0000")
[-- Attachment #1: Type: text/plain, Size: 2215 bytes --]
() Rodolfo Medina <rodolfo.medina@gmail.com>
() Tue, 03 Mar 2015 10:37:40 +0000
> Maybe some setting in the environment is the cause of the
> weirdness.
How can I check that?
I don't know. It was idle speculation. Since then, i have
looked at stampa.ps as converted to a PNG via:
gm convert stampa.ps stampa.png
and i see that the "half" that is cut off from the footer is the
*upper* half! The footer text is clipped by the footer frame.
So that excludes incorrect bounding box problems (due perhaps to
improper paper size specification) in my mental model. Also
supporting the theory that the paper size is indeed correctly
specified are the stampa.ps lines:
%%DocumentMedia: A4 595 842 0 () ()
%%PageMedia: A4
(where "A4" appears). Thus, there must be something else going
on; paper size is a red herring...
Since i don't even have gv installed on this computer, it looks
like gv cannot be at fault, either.
So, the only thing left is the postscript itself must be wrong.
I see that in:
(setq ps-print-footer t
ps-print-footer-frame nil
ps-top-margin 18
ps-bottom-margin 14
ps-left-margin 12
ps-right-margin 0
ps-print-header nil
ps-show-n-of-n nil
ps-print-footer-frame nil
ps-footer-lines 1
ps-footer-offset 0)
the var ‘ps-print-footer-frame’ is set to nil (twice!), yet
stampa.ps line 217 obstinately reads:
/PrintFooterFrame true def
If you manually change the "true" to "false", then there is no
footer frame and thus there is no footer frame clipping. So the
bug lies in the failure of the Emacs Lisp code to propagate the
Emacs Lisp variable ‘ps-print-footer-frame’ to the postscript
definition of ‘PrintFooterFrame’. Or you could say, "one bug".
Maybe there are others.
But before you file a bug report, are you very sure that you
evaluated the ‘(setq ...)’ form *before* generating stampa.ps?
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2015-03-03 23:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 13:08 Footers cut off in ps file Rodolfo Medina
2015-02-27 16:17 ` Dale Snell
2015-02-27 17:04 ` Rodolfo Medina
2015-02-27 20:44 ` Dale Snell
2015-02-28 9:09 ` Rodolfo Medina
2015-02-28 14:56 ` Dale Snell
2015-02-28 16:08 ` Rodolfo Medina
2015-02-28 17:53 ` Thien-Thi Nguyen
2015-03-03 10:37 ` ps-print cuts off footers (was: Footers cut off in ps file) Rodolfo Medina
2015-03-03 13:25 ` ps-print cuts off footers Rodolfo Medina
2015-03-03 21:46 ` Robert Thorpe
2015-03-03 23:24 ` Thien-Thi Nguyen [this message]
2015-03-04 15:50 ` Rodolfo Medina
2015-03-04 19:43 ` Thien-Thi Nguyen
2015-03-04 21:07 ` Robert Thorpe
2015-03-05 21:40 ` [solved] Re: Footers cut off in ps-print files Rodolfo Medina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhjdacld.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.