diff options
| author | Vinicius Jose Latorre | 2004-03-30 03:08:48 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2004-03-30 03:08:48 +0000 |
| commit | 30301a737a0f344769d4dbbc5f91209d6917bc97 (patch) | |
| tree | 1347c1cf2527dc51d398af4b4e6f52ed3ecaefa1 | |
| parent | 62ce3608303fa8f31f43238a1ee05800d4a1a6ed (diff) | |
| download | emacs-30301a737a0f344769d4dbbc5f91209d6917bc97.tar.gz emacs-30301a737a0f344769d4dbbc5f91209d6917bc97.zip | |
Clip the header and footer area.
| -rw-r--r-- | etc/ChangeLog | 7 | ||||
| -rw-r--r-- | etc/ps-prin1.ps | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index c9d48500245..85617a80418 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-03-29 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-prin1.ps: Clip the header and footer area, so text will not be | ||
| 4 | printed outside header or footer, respectively. | ||
| 5 | (HeaderClip, FooterClip): New PostScript funs. | ||
| 6 | (HeaderText, FooterText): Adjust PostScript code. | ||
| 7 | |||
| 1 | 2004-03-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 8 | 2004-03-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 9 | ||
| 3 | * TODO: Removed drag-and-drop entry (DONE). | 10 | * TODO: Removed drag-and-drop entry (DONE). |
diff --git a/etc/ps-prin1.ps b/etc/ps-prin1.ps index 1716562b0f4..70adabc7b0c 100644 --- a/etc/ps-prin1.ps +++ b/etc/ps-prin1.ps | |||
| @@ -751,6 +751,9 @@ StandardEncoding 46 82 getinterval aload pop | |||
| 751 | FooterLineHeight FooterLines 1 sub mul add | 751 | FooterLineHeight FooterLines 1 sub mul add |
| 752 | }def | 752 | }def |
| 753 | 753 | ||
| 754 | /HeaderClip{HeaderFrameStart moveto HeaderFramePath clip}def | ||
| 755 | /FooterClip{FooterFrameStart moveto FooterFramePath clip}def | ||
| 756 | |||
| 754 | /strcat{ | 757 | /strcat{ |
| 755 | dup length 3 -1 roll dup length dup 4 -1 roll add string dup | 758 | dup length 3 -1 roll dup length dup 4 -1 roll add string dup |
| 756 | 0 5 -1 roll putinterval | 759 | 0 5 -1 roll putinterval |
| @@ -803,17 +806,21 @@ StandardEncoding 46 82 getinterval aload pop | |||
| 803 | }def | 806 | }def |
| 804 | 807 | ||
| 805 | /HeaderText{ | 808 | /HeaderText{ |
| 809 | gsave HeaderClip | ||
| 806 | HeaderLinesRight HeaderLinesLeft | 810 | HeaderLinesRight HeaderLinesLeft |
| 807 | /HeaderStart HeaderLineHeight HeaderPad | 811 | /HeaderStart HeaderLineHeight HeaderPad |
| 808 | HeaderFrameProperties 0 get | 812 | HeaderFrameProperties 0 get |
| 809 | HeaderOrFooterText | 813 | HeaderOrFooterText |
| 814 | grestore | ||
| 810 | }def | 815 | }def |
| 811 | 816 | ||
| 812 | /FooterText{ | 817 | /FooterText{ |
| 818 | gsave FooterClip | ||
| 813 | FooterLinesRight FooterLinesLeft | 819 | FooterLinesRight FooterLinesLeft |
| 814 | /FooterStart FooterLineHeight FooterPad | 820 | /FooterStart FooterLineHeight FooterPad |
| 815 | FooterFrameProperties 0 get | 821 | FooterFrameProperties 0 get |
| 816 | HeaderOrFooterText | 822 | HeaderOrFooterText |
| 823 | grestore | ||
| 817 | }def | 824 | }def |
| 818 | 825 | ||
| 819 | /ReportFontInfo{ | 826 | /ReportFontInfo{ |