Postscript Level and Tray selection Problem [message #840855] |
Tue, 10 April 2012 11:36  |
Eclipse User |
|
|
|
Hi,
I have tried and searched over the internet as how to change the postscript level and add tray selection postscript directives to the generated postscript report.
Sample code:
PostscriptRenderOption optionss = new PostscriptRenderOption();
optionss.setOutputFileName("C:\\Chetan\\" + c.getPlanNumber()
+".ps");
optionss.setOutputFormat("postscript");
optionss.setPostscriptLevel(2);
optionss.setPaperTray("TRAY1 595.2 841.8 0");
This doesnt seem to work and gives output like
%!PS-Adobe-3.0
% (C)2006 Actuate Inc.
%%Creator: Chetan Kakkar
%%Pages: (atend)
%%DocumentProcessColors: Black
%%BeginSetup
%%BeginFeature: *Duplex null
<</Duplex true /Tumble false>> setpagedevice
%%EndFeature
%%BeginResource: procset BIRTProcs
%%Title: Utility procedures
while I want something like this
%!PS-Adobe-2.1
%%LanguageLevel: 2
%%Requirements:
%%DocumentMedia: TRAY1 595.2 841.8 0 white PINK
%%+ TRAY2 595.2 841.8 0 white LETTERHEAD
%%+ TRAY3 595.2 841.8 0 white PLAIN
%%+ TRAY4 595.2 841.8 0 white PREPRINTED
%%Pages: 8
%%EndComments
%%BeginProlog
Kindly suggest where I'm going wrong, it'svery urgent as it is part of a Proof-of Concept stage for using BIRT for our purposes.
Regards,
Chetan Kakkar
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03728 seconds