6

Is there an easy way to force a postscript page onto a new physical page without inserting a blank page?

e.g. Say I have a PS document with 10 postscript pages, which needs to print into different document bundles :

1 - Physical Page 1 Front Side

2 - Physical Page 1 Rear Side

3 - Physical Page 2

4 - Physical Page 3 Front Side

5 - Physical Page 3 Rear Side

6 - Physical Page 4 Front Side

7 - Physical Page 5

8 - Physical Page 6 Front Side

9 - Physical Page 7 Front Side

10 - Physical Page 7 Rear Side

I could set the whole file to be duplex, and insert dummy pages after page 3,6,7 and 8, but I'd like to avoid that as our printers cost per impression, not per physical page.

I'm hoping there's a simple PS syntax which corresponds to "Force to front page".

4

2 に答える 2

5

両面印刷をオフにして、空白のページを挿入する場所ですぐにオンに戻してみてください。

<< /Duplex false >> setpagedevice
<< /Duplex true >> setpagedevice

setpagedevice暗黙的に呼び出しerasepageinitgraphics(したがって、関連する後に使用しますshowpage)、PostScript言語リファレンスマニュアルには次のように記載されています。

デバイスのアクティブ化時に、両面印刷デバイスは常に最初のページを新しいメディアシートに印刷します。非アクティブ化すると、片面のみに印刷されている場合は、メディアの最後のシートが自動的に配信されます。

したがって、これが機能する場合は、保存する必要がありますshowpageが、それでもページは正しく排出されます。

于 2009-08-14T03:48:56.900 に答える
0

これはとてつもないことかもしれませんが、showpage動作を変更して、好きなようにプログラムすることができます。

% before the first -showpage-

/pageCount 0 def

% redefinition of 'showpage'
/showpage 
{
    showpage
    /pageCount pageCount 1 add def

    % add page checking here, and whatever logic you want
    % just call another showpage to create an empty one
}
bind def 
% 'bind' keeps old showpage unaltered, avoiding recursion

これは、dreamlaxが回答に示しているように、デュプレックスを無効にできない場合のオプションです。

于 2012-04-11T13:49:27.190 に答える