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 20:43:49 +0100 Message-ID: <87fv9k8s5m.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> <87lhjdacld.fsf@zigzag.favinet> <87zj7syd5q.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 1425500364 7464 80.91.229.3 (4 Mar 2015 20:19:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 20:19:24 +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 21:19:11 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 1YTFl6-0008HK-8M for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 21:19:08 +0100 Original-Received: from localhost ([::1]:46690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTFl5-0002e2-CS for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 15:19:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTFkq-0002b7-MI for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 15:18:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTFkn-0007P7-Eu for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 15:18:52 -0500 Original-Received: from mail.agora-net.com ([67.59.132.6]:53254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTFkn-0007P1-AX for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 15:18:49 -0500 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.71) (envelope-from ) id 1YTFkm-0000Ye-HO for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 15:18:48 -0500 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1YTFDC-0003Ai-9l for help-gnu-emacs@gnu.org; Wed, 04 Mar 2015 20:44:06 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <87zj7syd5q.fsf@gmail.com> (Rodolfo Medina's message of "Wed, 04 Mar 2015 15:50:57 +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:103023 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Rodolfo Medina () Wed, 04 Mar 2015 15:50:57 +0000 a misunderstanding, my fault. Well, let's share the fault, then we can share the (eventual) glory of resolving the problem. :-D 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? OK, i see in the original stampa.ps (at the top of the thread), line 217 does indeed read: /PrintFooterFrame false def so that was a false alarm. Since clipping is the immediate manifestation, one workaround is to disable clipping. You can do that by the definition of =E2=80=98FooterText=E2=80=99 (line 1070) to: /FooterText{ %gsave FooterClip FooterLinesRight FooterLinesLeft /FooterStart FooterLineHeight FooterPad FooterFrameProperties 0 get HeaderOrFooterText %grestore }def (We just comment out =E2=80=98gsave FooterClip=E2=80=99 and =E2=80=98gresto= re=E2=80=99.) For me, that change allows the full page number to show. Here is a small sed script that you can use to automake the workaround while you resolve things w/ the Author: --=-=-= Content-Type: application/x-sed Content-Disposition: inline; filename=noclip.sed Content-Transfer-Encoding: base64 L15cL0Zvb3RlclRleHR7LywvXn1kZWYvewogcy9nc2F2ZS8lJi8KIHMvZ3Jlc3RvcmUvJSYvCn0K --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Save to file noclip.sed and run it like so: $ sed -f noclip.sed stampa.ps > stampa-noclip.ps I suspect the root cause is an OBOE in the calculation of the =E2=80=98FooterHeight=E2=80=99 but that again(!) is idle speculation... i'= ll bow out of this thread now, but hope to see you post the nitty gritty debugging and resolution findings, "infuturo". :-D =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) iEYEARECAAYFAlT3YHgACgkQZwMiJEyAdQJTUgCg2P0hruE3ITXknPCh4PAQxYZ4 gQ0AnRk9CLKi3cTTfGSi9ObPmAoR15fy =uBwk -----END PGP SIGNATURE----- --==-=-=--