You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by "Clark, Raymond C" <Ra...@ehi.com> on 2016/09/01 21:07:20 UTC

PostScript multiple pages

I have a file that is portrait page 1, landscape page 2, and portrait page 3.

Am I switching from portrait to landscape and back to portrait properly in the following file?

%!PS-Adobe-3.0
%%Title: FSSpool
%%Creator: PScript5.dll Version 5.2.2
%%CreationDate: 7/23/2016 5:9:2
%%For: tocprd
%%BoundingBox: (atend)
%%Pages: (atend)
%%PageOrder: Special
%%DocumentData: Clean7Bit
%DocumentMedia: a4 595 842 80 () ()
%%LanguageLevel: 3
%%EndComments
%%EndProlog

%%BeginDefaults
%%EndDefaults

%Page 1
%%BeginSetup
%%EndSetup

%%BeginPageSetup
%%EndPageSetup

%%Page: 1 1
%%Orientation: Portrait
%%PageBoundingBox: 0 0 612 792
%%EndPageComments
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(Times-Roman Page 1) show
showpage
%%PageTrailer

%Page 2
%%BeginSetup
%%EndSetup

%%BeginPageSetup
  % A4, rotated 90 degrees ACW
  << /PageSize [612 792] /Orientation 3 >> setpagedevice
  90 rotate 0 -612 translate
%%EndPageSetup

%%Page: 2 2
%%Orientation: Landscape
%%PageBoundingBox: 0 0 792 612
%%EndPageComments
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(Helvetica Page 2) show
showpage
%%PageTrailer


%Page 3
%%Page: 3 3
%%BeginPageSetup
%%EndPageSetup

%%Orientation: Portrait
%%PageBoundingBox: 0 0 612 792
%%EndPageComments
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(Helvetica Page 3) show
showpage
%%PageTrailer
%%Trailer
%%EOF

Thank you,
Ray

________________________________

CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.