From: Rodolfo Medina <rodolfo.medina@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: ps-print cuts off footers
Date: Wed, 04 Mar 2015 15:50:57 +0000 [thread overview]
Message-ID: <87zj7syd5q.fsf@gmail.com> (raw)
In-Reply-To: 87lhjdacld.fsf@zigzag.favinet
Thien-Thi Nguyen <ttn@gnu.org> writes:
> () 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...
Yes...
> Since i don't even have gv installed on this computer, it looks
> like gv cannot be at fault, either.
So it is.
> 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?
Many thanks for your help. But no, there's a misunderstanding, my fault. The
above settings are not the ones used for stampa.ps. Instead, stampa.ps had the
only setting:
(setq ps-print-footer t)
and nothing else. Besides, the footer is cut off - its upper half, exactly -
*also without* footer frame, i.e. with footer frame set to `nil'.
It's really a problem because I've always been largely using Emacs and ps-print
package. Also from gv mailing list it seems to turn out the ps file to be
incorrect. It is generated by ps-print, from whose maintainer I didn't yet get
a reply to my message. I really don't know what to do. What do you suggest?
Thanks indeed,
Rodolfo
next prev parent reply other threads:[~2015-03-04 15:50 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
2015-03-04 15:50 ` Rodolfo Medina [this message]
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=87zj7syd5q.fsf@gmail.com \
--to=rodolfo.medina@gmail.com \
--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.