Copy link to clipboard
Copied
I need to print the first page of my bills on a specified pre printed bill form and the next Page i.e two or three on plain sheet.
I have follwoing command line for Page switching.
For First Page
<</Duplex false/PageSize [595 842] /Tumble false /ManualFeed false /MediaPosition 0>> setpagedevice
For Second Page
<</Duplex false/PageSize [595 842] /Tumble false /ManualFeed false /MediaPosition 1>> setpagedevice
Where Should I insert these lines in my PS File
Please see my PS file here
The first five page are single page bill that are to be printed in Bill form. the next bill is a two page bill so first page will be printed on bill form and the next on lain sheet.
Kinldy Guide where should I place those lines
Copy link to clipboard
Copied
If you do not need to alter the output order (e.g. to reverse), the following will be sufficient:
%%Page: 1 1
%%BeginPageSetup
<</Duplex false/PageSize [595 842] /Tumble false /ManualFeed false /MediaPosition 0>> setpagedevice
%%PageOrientation: Portrait
pdfStartPage
0 0 595 842 re W
%%EndPageSetup
...
%%Page: 2 2
%%BeginPageSetup
<</Duplex false/PageSize [595 842] /Tumble false /ManualFeed false /MediaPosition 1>> setpagedevice
%%PageOrientation: Portrait
pdfStartPage
0 0 595 842 re W
%%EndPageSetup
The italic lines are copied from your sample file, the bold line is what you should insert. For the 3rd and following
pages you need not do anything as long as you don't change the output order.
Helge