From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: ps-print cuts off footers Date: Wed, 04 Mar 2015 00:24:46 +0100 Message-ID: <87lhjdacld.fsf@zigzag.favinet> References: <87fv9rzem6.fsf@gmail.com> <20150227081713.4bfabbc7@zothique.localdomain> <87k2z39tgi.fsf@gmail.com> <20150227124430.4fbfcba6@zothique.localdomain> <871tla4d31.fsf@gmail.com> <20150228065623.7ab1c2df@zothique.localdomain> <87twy6uihq.fsf@gmail.com> <87h9u5excf.fsf@zigzag.favinet> <87a8zuv023.fsf@gmail.com> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1425425673 23369 80.91.229.3 (3 Mar 2015 23:34:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 23:34:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 04 00:34:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YSwKQ-0005oX-G4 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 00:34:18 +0100 Original-Received: from localhost ([::1]:41333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSwKP-0002Cv-PO for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 18:34:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSwKC-0002Ba-UJ for help-gnu-emacs@gnu.org; Tue, 03 Mar 2015 18:34:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSwK7-0007jK-TE for help-gnu-emacs@gnu.org; Tue, 03 Mar 2015 18:34:04 -0500 Original-Received: from mail.agora-net.com ([67.59.132.6]:47249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSwK7-0007jE-Ot for help-gnu-emacs@gnu.org; Tue, 03 Mar 2015 18:33:59 -0500 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.71) (envelope-from ) id 1YSwK6-0003aL-ED for help-gnu-emacs@gnu.org; Tue, 03 Mar 2015 18:33:58 -0500 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1YSwBP-0002XL-Cn for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 00:24:59 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <87a8zuv023.fsf@gmail.com> (Rodolfo Medina's message of "Tue, 03 Mar 2015 10:37:40 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 67.59.132.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103005 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Rodolfo Medina () 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:=20 (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 =E2=80=98ps-print-footer-frame=E2=80=99 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 =E2=80=98ps-print-footer-frame=E2=80=99 to the postscri= pt definition of =E2=80=98PrintFooterFrame=E2=80=99. Or you could say, "one b= ug". Maybe there are others. But before you file a bug report, are you very sure that you evaluated the =E2=80=98(setq ...)=E2=80=99 form *before* generating stampa.= ps? =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlT2QsUACgkQZwMiJEyAdQKRuwCg1YzAv5EOpwxwl2HbD9vdrtN8 azQAoMUFRQcTt7N1Rhd6NM3tHi+BaX6M =xOHv -----END PGP SIGNATURE----- --=-=-=--