<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>> How do I pass the model name to 
rastertomyprinter filter?<BR>>> <BR>>> The way I think will work 
is:<BR>>> 1. Parse option argument (argv[5]) to find 
ModelName.<BR>>> 2. If not passed in, use ppdFindOption API and get 
defchoice.<BR>>> <BR>>> Is this the way I'm supposed to 
use?<BR>><BR>> You can do that, or just 
use:<BR>><BR>>     
ppdOpen<BR>>     
ppdMarkDefaults<BR>>     
cupsParseOptions<BR>>     cupsMarkOptions<BR>><BR>> 
and then use ppdFindMarkedChoice() to get the marked choice for an<BR>> 
option.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What if I want to use command line to pass in 
ModelName that's not defined in PPD file? ppdFindMarkedChoice() will still give 
me the default choice.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>