• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Page Switching in Post Script file

New Here ,
Jun 01, 2014 Jun 01, 2014

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

Dropbox - 1.PS

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

TOPICS
Programming

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 02, 2014 Jun 02, 2014

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines