From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.help Subject: Re: ps-print cuts off footers Date: Wed, 04 Mar 2015 15:50:57 +0000 Message-ID: <87zj7syd5q.fsf@gmail.com> 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> <87lhjdacld.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1425484131 19090 80.91.229.3 (4 Mar 2015 15:48:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 15:48:51 +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 16:48:43 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 1YTBXN-0003ms-9U for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 16:48:41 +0100 Original-Received: from localhost ([::1]:44830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTBXM-0001yE-SI for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 10:48:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTBX8-0001xs-0V for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 10:48:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTBX0-0002Kt-QR for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 10:48:25 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:48897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTBX0-0002Kn-Km for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 10:48:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YTBWt-0003Rq-Hn for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 16:48:11 +0100 Original-Received: from ca-18-217-160.service.infuturo.it ([151.18.217.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2015 16:48:11 +0100 Original-Received: from rodolfo.medina by ca-18-217-160.service.infuturo.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2015 16:48:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 85 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ca-18-217-160.service.infuturo.it User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:XTVkzzqUZdVMFhTLLeJGWqAJAPM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:103018 Archived-At: Thien-Thi Nguyen writes: > () 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... 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