Question
multiple paper size in postscript
I wanna use multiple page sizes in single Postscript document to do some scientific graphics. Is it possible with Postscript? Why the following code doesn't work?
%!PS-Adobe-3.0
%%Title: landscape PDF example
%%Pages: 3
%%EndComments
%%BeginProlog
%%EndProlog
%%BeginSetup
% Document information
[/CreationDate (D:20040224)
/Creator (Hand crafted by Russell Lang)
/Title (landpdf.ps) % note that GS can get title from DSC %%Title
/Subject (Example of landscape and portrait pages)
/Keywords (landscape portrait example Ghostscript DOCINFO)
/Author (Ghostgum Software Pty Ltd)
/DOCINFO pdfmark
%%EndSetup
%%Page: 1 1
% Set the page size to A4
<< /PageSize [595 842] >> setpagedevice
/Helvetica findfont 100 scalefont setfont
100 200 moveto (1 portrait) show
showpage
%%Page: 2 2
%%PageOrientation: landscape
% Set the page size to A3
<< /PageSize [842 1191] /Orientation 3 >> setpagedevice
90 rotate 0 -842 translate
/Helvetica findfont 100 scalefont setfont
100 200 moveto (2 landscape) show
showpage
%%Page: 3 3
% Set the page size to A4
<< /PageSize [595 842] >> setpagedevice
/Helvetica findfont 100 scalefont setfont
100 200 moveto (3 portrait) show
showpage
%%Trailer
%%EOF
%!PS-Adobe-3.0
%%Title: landscape PDF example
%%Pages: 3
%%EndComments
%%BeginProlog
%%EndProlog
%%BeginSetup
% Document information
[/CreationDate (D:20040224)
/Creator (Hand crafted by Russell Lang)
/Title (landpdf.ps) % note that GS can get title from DSC %%Title
/Subject (Example of landscape and portrait pages)
/Keywords (landscape portrait example Ghostscript DOCINFO)
/Author (Ghostgum Software Pty Ltd)
/DOCINFO pdfmark
%%EndSetup
%%Page: 1 1
% Set the page size to A4
<< /PageSize [595 842] >> setpagedevice
/Helvetica findfont 100 scalefont setfont
100 200 moveto (1 portrait) show
showpage
%%Page: 2 2
%%PageOrientation: landscape
% Set the page size to A3
<< /PageSize [842 1191] /Orientation 3 >> setpagedevice
90 rotate 0 -842 translate
/Helvetica findfont 100 scalefont setfont
100 200 moveto (2 landscape) show
showpage
%%Page: 3 3
% Set the page size to A4
<< /PageSize [595 842] >> setpagedevice
/Helvetica findfont 100 scalefont setfont
100 200 moveto (3 portrait) show
showpage
%%Trailer
%%EOF
