| Server IP : 104.21.25.180 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/enscript/ |
Upload File : |
%
% Emacs ps-print-buffer styled header.
% Copyright (c) 1995 Markku Rossi.
% Author: Markku Rossi <[email protected]>
%
%
% This file is part of GNU Enscript.
%
% Enscript is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Enscript is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Enscript. If not, see <http://www.gnu.org/licenses/>.
%
% -- code follows this line --
%%DocumentNeededResources: font Helvetica
%Format: eurdatestr %E
%Format: pagenumstr $V$%/$=
% Fonts.
/Helvetica /HeaderFont-Bold MF
/HeaderF /HeaderFont-Bold findfont 12 scalefont def
/Helvetica /HeaderFont-Large MF
/HeaderLF /HeaderFont-Large findfont 12 1.3 mul scalefont def
/do_header { % print emacs header
gsave
d_header_x d_header_y translate
0 setgray
.5 setlinewidth
% black shadow
1 0 d_header_w 1 sub d_header_h 1 sub Box fill
% gray box with black frames
0 1 d_header_w 1 sub d_header_h 1 sub Box
gsave
.9 setgray fill
grestore
stroke
% texts
/xmarg 5 def
% Top line.
HeaderLF setfont
/y d_header_h 12 div d_header_h 2 div add def
xmarg y moveto ftail show
pagenumstr dup stringwidth pop
d_header_w exch sub 1 sub xmarg sub y moveto show
% Bottom line
HeaderF setfont
/y d_header_h 6 div def
xmarg y moveto fdir show
eurdatestr dup stringwidth pop
d_header_w exch sub 1 sub xmarg sub y moveto show
grestore
} def