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

Mediatype and Duplex command in a PostScript print file

New Here ,
Jun 22, 2009 Jun 22, 2009

Copy link to clipboard

Copied

Hi All,

I am sending a Poscript print file to an HP4650 printer which has a built in duplexer. I need the file to print duplex, but, turning duplex "on"  at the printer is not an option as we also print simplex documents on it. My file also has a "mediatype" call to pull perf paper. I've checked the .PPD file for the printer and found the command structure for duplex and for the mediatype commands. If I use the duplex command by itself, the file duplexes. If I use the mediatype by itself, the the file pulls the perf paper. If I use the two commands together in the file, it pulls the perf, but prints simplex, not duplex.

Here are the commands I'm using - they are located in the %%BeginSetup section which is immediately following the %%EndProlog and is prior to the actual print data in the file. Can anyone tell me why the two commands won't work together or how to coorect my code? Thanks!

featurebegin{

%%BeginFeature: *Duplex DuplexNoTumble

  <</Duplex true /Tumble false>> setpagedevice

%%EndFeature

}featurecleanup

featurebegin{

%%BeginFeature: *MediaType Perf

  << /MediaType (Perf) >> setpagedevice

%%EndFeature

}featurecleanup

TOPICS
Programming

Views

9.7K

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 22, 2009 Jun 22, 2009

Copy link to clipboard

Copied

Your PostScript looks fine but you could try just one setpagedevice

<<

  /Duplex true

  /Tumble false

  /MediaType (Perf)

>> setpagedevice

It may be that perf media is simplex only.

Ed

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
Contributor ,
Jun 24, 2009 Jun 24, 2009

Copy link to clipboard

Copied

If that approach fails, try to specify the media type before specifying the page size as it is specified by the

printer's PPD.

It is known that many HP printers (among others) are touchy with respect

to the order in wzich setpagedevice keys are specified.

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
New Here ,
Jun 29, 2009 Jun 29, 2009

Copy link to clipboard

Copied

LATEST

Thanks Helge,

Using a tray call rather than actually specifiing the media type solved my problem.

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