Thread View: adobe.postscript.programming
4 messages
4 total messages
Started by Marcel Mueller
Wed, 09 Apr 2008 10:00
Page count and break
Author: Marcel Mueller
Date: Wed, 09 Apr 2008 10:00
Date: Wed, 09 Apr 2008 10:00
26 lines
1750 bytes
1750 bytes
Hi. At work we use some postscript document and want to split that into two pages So somewhere at the beginning, we define %%Pages: 2 Somewhat later the two pages are set with %%Page: 1 1 (line 160) and %%Page: 1 1 (line 387) I thought that the second one shoul be something like %%Page: 2 1, but that will completely screw up everything. Since I'm not too familiar with postscript commands, I think it would be nice if someone can find out wht's going wrong with our file. I put a copy of that on the web (http://www.stud.uni-hannover.de/~massel/form_test.ps) if anyone wants to have a look at it. Greetings, Marcel
Re: Page count and break
Author: Jeffrey H. Coffield
Date: Wed, 09 Apr 2008 14:07
Date: Wed, 09 Apr 2008 14:07
380 lines
14977 bytes
14977 bytes
This is a multi-part message in MIME format.
--------------040609080508020203050609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Marcel Mueller wrote:
> Hi.
>
> At work we use some postscript document and want to split that into
> two pages
> So somewhere at the beginning, we define
>
> %%Pages: 2
>
> Somewhat later the two pages are set with
>
> %%Page: 1 1 (line 160)
>
> and
>
> %%Page: 1 1 (line 387)
>
> I thought that the second one shoul be something like %%Page: 2 1, but
> that will completely screw up everything. Since I'm not too familiar
> with postscript commands, I think it would be nice if someone can find
> out wht's going wrong with our file. I put a copy of that on the web
> (http://www.stud.uni-hannover.de/~massel/form_test.ps) if anyone wants
> to have a look at it.
>
> Greetings,
>
> Marcel
The %%Page entries are just comments to Postscript. Are the attachments
what you want?
--------------040609080508020203050609
Content-Type: application/postscript;
name="page1.ps"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="page1.ps"
%!PS-Adobe-3.0
%%BoundingBox: 0 0 596 842
%%Copyright: Copyright (C) 1995, 1996 Michael Riepe
%%+ <riepe@ifwsn4.ifw.uni-hannover.de>
%%+ Alle Rechte vorbehalten.
%%CreationDate: Thu Dec 14 19:17:18 MET 1995
%%LanguageLevel: 1
%%Orientation: Portrait
%%Pages: 2
%%Title: Unix-AG Anmeldeformular
%%Version: 1.2 0
%%DocumentMedia: A4 596 842 75 white ()
%%DocumentNeededResources: font Times-Roman Times-Bold
%%DocumentSuppliedResources: file aglogo.eps rrznlogo.eps
%%EndComments
%%BeginProlog
/bd{bind def}bind def
/BeginEPSF{
/b4_Inc_state save def
/dict_count countdictstack def
/op_count count 1 sub def
userdict begin
/showpage{}def
0 setgray 0 setlinecap 1 setlinewidth
0 setlinejoin 10 setmiterlimit [] 0 setdash newpath
/languagelevel where{
pop languagelevel 1 ne{
false setstrokeadjust false setoverprint
}if
}if
}bd
/EndEPSF{
count op_count sub{pop}repeat
countdictstack dict_count sub{end}repeat
b4_Inc_state restore
}bd
/ScaleEPSF{
exch pop 1 index sub 100 exch div dup scale
exch neg exch neg translate
}bd
/aglogo{
BeginEPSF
0 0 620 200 ScaleEPSF
%%BeginDocument: aglogo.eps
%%BoundingBox: 0 -27 620 200
%%Copyright: Copyright 1994, 1995 Michael Riepe
%%+ <riepe@ifwsn4.ifw.uni-hannover.de>
%%CreationDate: Thu Feb 23 18:19:00 MET 1995
%%DocumentNeededResources: font Helvetica-Bold
%%Title: Unix-AG logo
%%Version: 1.0 0
%%EndComments
%%BeginProlog
/LogoDict 30 dict dup begin/bd{bind def}bind def/ed{exch def}bd/N{
newpath}bd/M{moveto}bd/L{lineto}bd/C{curveto}bd/RM{rmoveto}bd/RL{
rlineto}bd/RC{rcurveto}bd/CP{currentpoint}bd/CL{closepath}bd/CT{dup
stringwidth pop -.5 mul 0 RM}bd/RT{dup stringwidth pop neg 0 RM}bd
/LT{}bd/box{0 0 M 1 0 L 1 1 L 0 1 L CL}bd/uni{matrix currentmatrix 1 12
div dup scale 0 12 M 0 4 L 3.2 -1.6 10.4 -.4 12 2 C 12 0 L 20 0 L 20 7 L
20 9 24 9 24 7 C 24 0 L 32 0 L 32 8 L 28.8 13.6 21.6 12.4 20 10 C 20 12
L 12 12 L 12 5 L 12 3 8 3 8 5 C 8 12 L CL 33 0 translate 8 12 scale box
setmatrix}bd/Xa{0 1 M .6 0 L 1 0 L .4 1 L CL}bd/Xb{0 0 M .4 0 L 1 1 L .6
1 L CL}bd/A{CP .5 1 RL .1 -1 RL 2 copy M .12 .4 RM .5 .1 RL exch .625
add exch M}bd/G{CP .6 .9 RM -.1 .1 -.3 .1 -.4 0 RC -.1 -.1 -.2 -.7 -.1
-.8 RC .1 -.1 .3 -.1 .4 0 RC .025 -.1 RM .075 .5 RL -.2 -.05 RL .25 .5
RM -.025 -.1 RL exch .625 add exch M}bd/aglogo{gsave 1 setlinecap 1
setlinejoin matrix currentmatrix .6 dup scale N uni dup setmatrix 2.1 0
translate Xa unixcolor fill N Xa dup setmatrix .6 dup scale uni dup
setmatrix framewidth framecolor stroke 2.1 0 translate N Xb unixcolor
fill N Xb framewidth framecolor stroke setmatrix/Helvetica-Bold findfont
.45 scalefont setfont 1.025 .64 M(Hannover)CT textcolor show 1.75 -.1
translate N 0 0 M A G agwidth agcolor stroke grestore}bd/logo{gsave 200
dup scale aglogo grestore}bd
% -- configuration section --
/framecolor{0 setgray}bd
/textcolor{framecolor}bd
/unixcolor{.8 setgray}bd
/agcolor{.2 setgray}bd
/framewidth{.005 setlinewidth}bd
/agwidth{.07 setlinewidth}bd
% -- end configuration section --
end def
%%EndProlog
LogoDict begin logo end
%%EndDocument
EndEPSF
}def
/rrznlogo{
BeginEPSF
207 247 336 287 ScaleEPSF
%%BeginDocument: rrznlogo.eps
%%BoundingBox: 211 238 349 295
%%Copyright: Copyright 1996 Michael Riepe
%%+ <riepe@ifwsn4.ifw.uni-hannover.de>
%%+ Alle Rechte vorbehalten.
%%+ Nur fuer den internen Gebrauch der Unix-AG der Universitaet Hannover!
%%+ Weitergabe nur mit schriftlicher Genehmigung des Autors.
%%CreationDate: Sat Jan 20 18:05:21 MET 1996
%%DocumentNeededResources: font Times-Bold
%%Title: RRZN logo
%%Version: 1.0 0
%%EndComments
% Graphisch identische, handcodierte Version des Original-Logos.
% Soll das "stack overflow"-Problem mit dem Original beheben.
gsave
0 setlinecap
0 setlinejoin
4 setmiterlimit
[] 0 setdash
72 75 div dup scale
/Times-Bold findfont 48 scalefont setfont
0 setgray
215.875 260 moveto (RRZN) show
2 setlinecap
newpath 351 257 moveto 216 257 lineto stroke
newpath 351 298 moveto 216 298 lineto stroke
grestore
showpage
%%EndDocument
EndEPSF
}def
/makeISOfont{
dup findfont dup length dict begin
{1 index/FID ne{def}{pop pop}ifelse}forall
/Encoding ISOLatin1Encoding def
currentdict end definefont
}bd
/centertext{dup stringwidth pop -2 div 0 rmoveto}bd
/righttext{dup stringwidth pop neg 0 rmoveto}bd
/lefttext{}bd
/Normal/Times-Roman makeISOfont def
/R{Normal exch scalefont setfont}bd
/Bold/Times-Bold makeISOfont def
/B{Bold exch scalefont setfont}bd
% /Monosp/Courier makeISOfont def
% /C{Monosp exch scalefont setfont}bd
/down{y exch sub/y exch def x y moveto}bd
/box{newpath 0 0 moveto 1 0 lineto 1 1 lineto 0 1 lineto closepath}bd
/line{gsave newpath moveto lineto closepath 0 setlinewidth stroke grestore}bd
/feld{normal 1.5 mul down normal R show normal down normal B show}bd
/unterschrift{
normal big add down
rightmargin leftmargin sub 3 div dup x add y rightmargin y line
small down 2 mul 0 rmoveto small R centertext show
-1 down
}bd
%%EndProlog
%%BeginSetup
/leftmargin 20 def
/rightmargin 190 def
/pagecenter leftmargin rightmargin add 2 div def
/topmargin -20 def
/x leftmargin def
/y topmargin def
/big 15 2.835 div def
/normal 12 2.835 div def
/small 10 2.835 div def
/tiny 8 2.835 div def
%%EndSetup
%%Page: 1 1
%%PageBoundingBox: 0 0 596 842
/Username () def
/Password () def
/Vorname () def
/Nachname () def
/Antragsnummer () def
/Matrikelnummer () def
/Maildomain (@stud.uni-hannover.de) def
/BasisURL (http://www.stud.uni-hannover.de) def
/Mailname () def
/OldText false def
gsave
2.835 dup scale
0 297 translate
% page copyright
gsave 90 rotate -148.5 tiny leftmargin add -2 div moveto tiny R
(Copyright \251 1995, 1996, 2003, 2008 Unix-AG der Universit\344t Hannover. Alle Rechte vorbehalten.) centertext show grestore
% page header
12 down
gsave leftmargin y translate 0.12 dup scale rrznlogo grestore
gsave pagecenter 18.6 sub y translate 0.12 dup scale aglogo grestore
rightmargin y moveto 16 B Antragsnummer righttext show
5 down
y
normal R
normal down (Regionales Rechenzentrum) show
normal down (f\374r Niedersachsen) show
normal down (- Auskunft -) show
normal down (Schlo\337wender Stra\337e 5) show
big down (30159 Hannover) show
/y exch def
pagecenter y 5 sub dup rightmargin exch line
gsave
rightmargin y translate
pagecenter rightmargin sub -25 scale
box 0 setlinewidth stroke
grestore
small R
small down
pagecenter rightmargin add 2 div y moveto
(RRZN-Sichtvermerke) centertext show
pagecenter 1 add y 5 sub moveto (Ausweis/Pa\337 gepr\374ft) show
pagecenter 1 add y 5 sub small sub moveto (Name/Datum) show
pagecenter 1 add y 15 sub moveto (Username freigegeben) show
pagecenter 1 add y 15 sub small sub moveto (Name/Datum) show
25 small sub down
% text
normal dup add down
big B
pagecenter y moveto
%%% (Antrag auf Benutzung des Studierendenrechners) centertext show
(Antrag auf Nutzung des Studierendenrechners) centertext show
big down
pagecenter y moveto
(an der Universit\344t Hannover) centertext show
big down
normal B
pagecenter y moveto
(mit Zugang vom h\344uslichen Arbeitsplatz oder vom Studentenwohnheim) centertext show
% Kasten fuer I-Bescheinigung
big down
small R
gsave rightmargin y translate
-48 -34 moveto (Hier bitte Original oder Kopie der) centertext show
-48 -34 small sub moveto (Immatrikulationsbescheinigung aufkleben) centertext show
-96 -68 scale box 0 setlinewidth stroke
grestore
% text fields
y -68 add
Antragsnummer (Antrag Nr.:) feld
Nachname (Nachname:) feld
Vorname (Vorname:) feld
Matrikelnummer (Matrikelnr.:) feld
Username (Username:) feld
Mailname (Mailname:) feld
/y exch def
% anschrift
normal dup add down
normal R
(Anschrift: ) stringwidth pop x add
(Anschrift:) show dup y rightmargin y line
big down dup y rightmargin y line
big down
(Telefon:) show dup y rightmargin y line
pop
% text
normal R
normal down
OldText{
normal down (Ich beantrage hiermit die Genehmigung zur Benutzung des Rechners, der an der Universit\344t) show
normal down (Hannover f\374r die Ausbildung der Studierenden eingerichtet worden ist. Ich bin als) show
normal down (Studentin/Student an der Universit\344t Hannover immatrikuliert.) show
normal down
normal down (Ich erkl\344re hiermit, alle Hinweise, Ordnungen und Erlasse der ausliegenden Seiten 3/4 dieses) show
normal down (Antrages zur Kenntnis genommen zu haben und verpflichte mich zu deren Einhaltung.) show
}{
normal down (Ich beantrage die Nutzung des Studierendenrechners an der Universit\344t Hannover.) show
normal down (Ich bin als Studentin/Student an der Universit\344t Hannover immatrikuliert.) show
normal down
normal down (Ich erkl\344re hiermit, die Regelungen zum Antragsverfahren (ORG.BEN 10, Seite 3 und 4)) show
normal down (und die "Benutzungs- und Entgeltordnung" des RRZN zur Kenntnis genommen zu haben) show
normal down (und ich verpflichte mich zu deren Einhaltung.) show
}ifelse
% feld fuer unterschrift
(Ort, Datum, Unterschrift der Studentin / des Studenten) unterschrift
% datenschutzklausel
normal R
normal down
normal down (Die personenbezogenen Daten dieses Antrages werden zum Zweck der Organisation des) show
normal down (Betriebes des Studierendenrechners elektronisch gespeichert und mit den entsprechenden) show
normal down (Daten des Immatrikulationsamtes der Universit\344t Hannover abgeglichen. Die Daten werden) show
normal down (nicht weitergereicht. Mit diesem Verfahren erkl\344re ich mich einverstanden und best\344tige dieses) show
normal down (durch meine zweite Unterschrift.) show
% feld fuer unterschrift
(Zweite Unterschrift der Studentin / des Studenten) unterschrift
% beisskante
big down
%% gsave [1 1] 0 setdash 0 setlinewidth 0 y moveto 210 y lineto stroke grestore
%% pagecenter y tiny sub moveto
%% tiny R (Bitte abtrennen - Informationen f\374r die Antragstellerin / den Antragsteller) centertext show
% userinfo
normal R (Mailadresse: ) stringwidth pop x add
normal B dup (mmmmmmmm ) stringwidth pop add
normal R dup (Nachname: ) stringwidth pop add
big dup add down
%% normal R leftmargin y moveto (Antrag Nr.:) show
%% normal B 2 index y moveto Antragsnummer show
%% normal R 1 index y moveto (Nachname:) show
%% normal B dup y moveto Nachname show
normal down
%% normal R leftmargin y moveto (Matrikelnr.:) show
%% normal B 2 index y moveto Matrikelnummer show
%% normal R 1 index y moveto (Vorname:) show
%% normal B dup y moveto Vorname show
normal down
%% normal R leftmargin y moveto (Username:) show
%% normal B 2 index y moveto Username show
%% normal R 1 index y moveto (Pa\337wort:) show
%% normal B dup y moveto Password show
normal dup add down
%% normal R leftmargin y moveto (Homepage:) show
%% normal B 2 index y moveto BasisURL show (/~) show Username show
Mailname () ne{
normal down
%% normal R leftmargin y moveto (Mailadresse:) show
%% normal B 2 index y moveto Mailname show Maildomain show
}if
normal dup add down
normal R leftmargin y moveto ( ) show
pop pop pop
% finito
grestore
showpage
--------------040609080508020203050609
Content-Type: application/postscript;
name="page2.ps"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="page2.ps"
Z3MgLXI3MiAtc1BBUEVSU0laRT1hNApFU1AgR2hvc3RzY3JpcHQgOC4xNSAoMjAwNi0wNC0x
OSkKQ29weXJpZ2h0IChDKSAyMDA0IGFydG9mY29kZSBMTEMsIEJlbmljaWEsIENBLiAgQWxs
IHJpZ2h0cyByZXNlcnZlZC4KVGhpcyBzb2Z0d2FyZSBjb21lcyB3aXRoIE5PIFdBUlJBTlRZ
OiBzZWUgdGhlIGZpbGUgQ09QWUlORyBmb3IgZGV0YWlscy4KR1M+KC90bXAvcHMtcnVuLTMx
NzMyV3hNKSBydW4KTG9hZGluZyBOaW1idXNSb21ObzlMLVJlZ3UgZm9udCBmcm9tIC91c3Iv
c2hhcmUvZ2hvc3RzY3JpcHQvZm9udHMvbjAyMTAwM2wucGZiLi4uIDMyODUyODAgMTk0ODky
OCAyMTE5NDE2IDgyMzIyNyAxIGRvbmUuCkxvYWRpbmcgTmltYnVzUm9tTm85TC1NZWRpIGZv
bnQgZnJvbSAvdXNyL3NoYXJlL2dob3N0c2NyaXB0L2ZvbnRzL24wMjEwMDRsLnBmYi4uLiAz
NDUxMDQ4IDIxMTM2OTkgMjE0NDE3NiA4Mzg4NDggMSBkb25lLgpMb2FkaW5nIE5pbWJ1c1Nh
bkwtQm9sZCBmb250IGZyb20gL3Vzci9zaGFyZS9naG9zdHNjcmlwdC9mb250cy9uMDE5MDA0
bC5wZmIuLi4gMzU1ODYwOCAyMjI1NjcyIDI0NDEyOTYgNzcyMDY0IDIgZG9uZS4KPj5zaG93
cGFnZSwgcHJlc3MgPHJldHVybj4gdG8gY29udGludWU8PAoKR1M+
--------------040609080508020203050609--
Re: Page count and break
Author: Marcel Mueller
Date: Wed, 09 Apr 2008 16:59
Date: Wed, 09 Apr 2008 16:59
14 lines
1486 bytes
1486 bytes
On Wed, 09 Apr 2008 07:07:16 -0700, "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> wrote: >The %%Page entries are just comments to Postscript. Are the attachments >what you want? The second one seems to be screwed up. Isn't it possible to get both pages in one .ps file or what was the reason for splitting it into two files? Greetings, Marcel
Re: Page count and break
Author: Jeffrey H. Coffield
Date: Thu, 10 Apr 2008 03:09
Date: Thu, 10 Apr 2008 03:09
24 lines
2047 bytes
2047 bytes
Marcel Mueller wrote: > On Wed, 09 Apr 2008 07:07:16 -0700, "Jeffrey H. Coffield" > <jeffrey@digitalsynergyinc.com> wrote: > >> The %%Page entries are just comments to Postscript. Are the attachments >> what you want? > > The second one seems to be screwed up. > > Isn't it possible to get both pages in one .ps file or what was the > reason for splitting it into two files? > > Greetings, > > Marcel Your first message said "At work we use some postscript document and want to split that into two pages" so I did. Perhaps I don't understand what you are asking. Jeff
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads