Bug 693053 - -dNOMEDIAATTRS needs better documentation
Summary: -dNOMEDIAATTRS needs better documentation
Status: RESOLVED WONTFIX
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: CUPS driver (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Till Kamppeter
URL:
Keywords:
Depends on:
Blocks: 694976
  Show dependency tree
 
Reported: 2012-05-20 01:06 UTC by Hin-Tak Leung
Modified: 2018-06-08 19:29 UTC (History)
3 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hin-Tak Leung 2012-05-20 01:06:15 UTC
The current documentation is a bit lacking. I think some better description of what it does is needed.

Ghostscript is supposed to be used with an InputAttributes dictionary (possibly set via setpagedevice at the beginning of the job, or other hardware mechanism if used in an embedded usage) which describes what are the available media, and what attributes they have, to know what media choices is available, and try to match that to media selection setpagedevice calls. In the absence of an InputAttributes dictionary, most media selection setpagedevice calls are dropped; this seems to be overriden by the -dMEDIAATTRS switch, which allows them to pass-through.

AFAIK only two drivers do anything with the information, - pcl5 and pxl (for MediaPosition/tray selection), and may be one or two of the 3rd party drivers.

See also bug 687899, trunk@5831, 
trunk@5995, for background information, and Resource/Init/gs_setpd.ps for the actual NOMEDIAATRS conditionals, and also some recent discussion in
Bug 692914 (Postscript MediaType lost in tranformation to PCL).
Comment 1 Till Kamppeter 2018-06-08 19:29:15 UTC
Report is already 6 years old and no additional complaints. Closing.