|
|
|
| I'm looking for a piece of PostScript code to include in my Postscript
header to force the use of a particular tray independant of the pagesize
loaded in this tray.
e.g. my printer has a default pagesize of A4. Tray 1 is loaded with A4 and
tray 2 is loaded with A3. When I use the MediaPosition 2, my printer prompts
to load A4 in tray 2. What I want is that tray 2 is used with pageSize A3. I
cannot code the PageSize in my PostScript file since I do NOT know the
required PageSize. All I know is the tray that the user needs. Any idea how
to code the PostScript commands to get this accomplished? My printers are
able to sense the pagesize that is currently loaded in all available trays.
| |
| sjprouty 2006-02-22, 6:59 pm |
| Assuming your printer supports it, this can probably be done by placing the
following command sometime before the /MediaPosition 2 command:
<<
/Policies << /PageSize 1 >>[color=darkred]
setpagedevice
Page 434 in the PostScript Language Reference Manual, 3rd Ed. shows the
other options for page size mismatches.
Thanks
Scott Prouty
| |
| Aandi Inston 2006-02-22, 6:59 pm |
| "Ton" <dd@a> wrote:
>I'm looking for a piece of PostScript code to include in my Postscript
>header to force the use of a particular tray independant of the pagesize
>loaded in this tray.
This sort of code is typically specific to the exact printer in use.
So you need to use code specific to each printer. The canonical way to
do this is to parse the PPD files for each selected printer, to get
the PostScript code fragments.
> I
>cannot code the PageSize in my PostScript file since I do NOT know the
>required PageSize.
This will not work. The page size is defined to override any media
selection if there is a page size mismatch. Your code needs to know
what size is in the tray, and explictly request that along with the
tray.
This is essential because the printer may not read from the tray until
after imaging the page. The printer therefore has to know what page
size to prepare in memory before touching the tray.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.
| |
|
| Thanks Aandi,
I have no problem with specifying the pagesize as long as this is the value
sensed by the device.
Do you have any idea how to code this in PostScript?
Ton
"Aandi Inston" <quite@dial.pipex.con> schreef in bericht
news:43fccca6.555575395@read.news.uk.uu.net...
> "Ton" <dd@a> wrote:
>
>
> This sort of code is typically specific to the exact printer in use.
> So you need to use code specific to each printer. The canonical way to
> do this is to parse the PPD files for each selected printer, to get
> the PostScript code fragments.
>
>
> This will not work. The page size is defined to override any media
> selection if there is a page size mismatch. Your code needs to know
> what size is in the tray, and explictly request that along with the
> tray.
>
> This is essential because the printer may not read from the tray until
> after imaging the page. The printer therefore has to know what page
> size to prepare in memory before touching the tray.
> ----------------------------------------
> Aandi Inston quite@dial.pipex.com http://www.quite.com
> Please support usenet! Post replies and follow-ups, don't e-mail them.
>
| |
|
| Thanks Scott for your prompt response.
I will test this. I was not sure that this policy option results in using
the sensed pagesize for the selected tray.
Ton
"sjprouty" <scott.prouty@solimarsystems.com> schreef in bericht
news:4d11e8d4dcc76e5849b0a96c3462dae3@lo
calhost.talkaboutprogramming.com...
> Assuming your printer supports it, this can probably be done by placing
> the
> following command sometime before the /MediaPosition 2 command:
>
>
> <<
> /Policies << /PageSize 1 >>
> setpagedevice
>
>
> Page 434 in the PostScript Language Reference Manual, 3rd Ed. shows the
> other options for page size mismatches.
>
> Thanks
> Scott Prouty
>
>
| |
| Aandi Inston 2006-02-22, 6:59 pm |
| "Ton" <tannegarn@dow.com> wrote:
>I have no problem with specifying the pagesize as long as this is the value
>sensed by the device.
>Do you have any idea how to code this in PostScript?
Both page size specification and tray selection code comes from the
PPD. There is a more or less standardised way to choose page size, but
it is better to take all device control from the PPD.
----------------------------------------
Aandi Inston quite@dial.pipex.com http://www.quite.com
Please support usenet! Post replies and follow-ups, don't e-mail them.
|
|
|
|