1
0

Devices.htm 205 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>Details of Ghostscript output devices</title>
  5. <!-- $Id: Devices.htm,v 1.34.2.4 2002/02/01 05:31:24 raph Exp $ -->
  6. <!-- Originally: devices.txt -->
  7. <link rel="stylesheet" type="text/css" href="gs.css" title="Ghostscript Style">
  8. </head>
  9. <body>
  10. <!-- [1.0 begin visible header] ============================================ -->
  11. <!-- [1.1 begin headline] ================================================== -->
  12. <h1>Details of Ghostscript output devices</h1>
  13. <!-- [1.1 end headline] ==================================================== -->
  14. <!-- [1.2 begin table of contents] ========================================= -->
  15. <h2>Table of contents</h2>
  16. <blockquote><ul>
  17. <li><a href="#Measurements">Notes on measurements</a>
  18. <li><a href="#IJS">IJS - Inkjet and other raster devices</a>
  19. <li><a href="#Win">MS Windows printers</a>
  20. <li><a href="#File_formats">File formats</a>
  21. <ul>
  22. <li><a href="#JFIF">JPEG file format (JFIF)</a>
  23. <li><a href="#TIFF">TIFF file formats</a>
  24. </ul>
  25. <li><a href="#Display_devices">Display devices</a>
  26. <ul>
  27. <li><a href="#x11_devices">X Window System</a>
  28. </ul>
  29. <li><a href="#HP_ijs">HP Deskjet official drivers</a>
  30. <li><a href="#HP8_color_inkjet">H-P 8xx, 1100, and 1600 color inkjet printers</a>
  31. <ul>
  32. <li><a href="#HP8_gdevcd8">Drivers contained in <b><tt>gdevcd8.c</tt></b></a>
  33. <li><a href="#HP8_further_documentation">Further documentation</a>
  34. </ul>
  35. <li><a href="#HP880_color_inkjet">H-P 812, 815, 832, 880, 882, 895, and 970 color inkjet printers</a>
  36. <ul>
  37. <li><a href="#HP880_gdevcd8">Drivers contained in <b><tt>gdevcd8.c</tt></b></a>
  38. <li><a href="#HP880_further_documentation">Further documentation</a>
  39. </ul>
  40. <li><a href="#HP_color_inkjet">Other H-P color inkjet printers</a>
  41. <ul>
  42. <li><a href="#HP_gdevcdj">Drivers contained in <b><tt>gdevcdj.c</tt></b></a>
  43. <li><a href="#HP_paper_size">Default paper size</a>
  44. <li><a href="#HP_limits">Deskjet physical limits</a>
  45. <li><a href="#HP_command_line">Printer properties (command-line parameters)</a>
  46. <ul>
  47. <li><a href="#HP_bpp">Bits per pixel</a>
  48. <li><a href="#HP_deskjet_properties">Deskjet properties</a>
  49. <li><a href="#HP_paintjet_properties">Paintjet XL300 / Paintjet XL properties</a>
  50. </ul>
  51. <li><a href="#HP_gamma">Gamma correction</a>
  52. <li><a href="#HP_resolution_enhance">HP's resolution-enhanced mode for Inkjet printers</a>
  53. <li><a href="#HP_tips">General tips</a>
  54. </ul>
  55. <li><a href="#BJC_8200">Canon BJC-8200 printer</a>
  56. <li><a href="#BJC">Other Canon BubbleJet (BJC) printers</a>
  57. <ul>
  58. <li><a href="#BJC_history">History</a>
  59. <li><a href="#BJC_build">Configuring and building the BJC drivers</a>
  60. <ul>
  61. <li><a href="#BJC_defaults">Modify values in <b><tt>gdevbjc.h</tt></b></a>
  62. <li><a href="#BJC_CMYK_RGB">CMYK-to-RGB color conversion</a>
  63. <li><a href="#BJC_vertical_centering">Vertical centering of the printable area</a>
  64. <li><a href="#BJC_margins">Page margins</a>
  65. <li><a href="#BJC_compile">Makefile and compilation</a>
  66. </ul>
  67. <li><a href="#BJC_usage">Use of the drivers</a>
  68. <ul>
  69. <li><a href="#BJC_options">Supported Options and Defaults</a>
  70. <li><a href="#BJC_device_info">Device information</a>
  71. <li><a href="#BJC_HW_margins">Hardware margins</a>
  72. <li><a href="#BJC_PPD">PostScript printer description (PPD) files</a>
  73. <li><a href="#BJC_PPD_custom">Customizing the PPD files</a>
  74. </ul>
  75. <li><a href="#BJC_bugs">How to report problems</a>
  76. <li><a href="#BJC_acks">Acknowledgements</a>
  77. </ul>
  78. <li><a href="#STC_epson_stylus">Epson Stylus color printer (see also <b><tt>uniprint</tt></b>)</a>
  79. <ul>
  80. <li><a href="#STC_usage">Usage</a>
  81. <li><a href="#STC_options">Options</a>
  82. <li><a href="#STC_FAQ">Application note and FAQ</a>
  83. <ul>
  84. <li><a href="#STC_FAQ_A3">Support for A3 paper</a>
  85. <li><a href="#STC_FAQ_margins">Margins, PageSize</a>
  86. <li><a href="#STC_FAQ_II_IIS_1500">Stylus Color II / IIs and 1500</a>
  87. </ul>
  88. <li><a href="#STC_recommendations">Recommendations</a>
  89. <ul>
  90. <li><a href="#STC_dither_experiment">Color dithering experiments with <b><tt>gdevstc</tt></b> 1.21</a>
  91. </ul>
  92. <li><a href="#STC_color_transform">Color transformation</a>
  93. <li><a href="#STC_CAM"><b><tt>ColorAdjustMatrix</tt></b></a>
  94. <li><a href="#STC_RGBCMYK_coding">RGB / CMYK coding and transfer, and <b><tt>BitsPerPixel</tt></b></a>
  95. <li><a href="#What_is_weaving">What is weaving?</a>
  96. <li><a href="#STC_print_modes">Print mode parameters</a>
  97. <ul>
  98. <li><a href="#STC_unidirectional"><b><tt>Unidirectional</tt></b></a>
  99. <li><a href="#STC_noweave"><b><tt>Microweave</tt></b>, <b><tt>noWeave</tt></b> and <b><tt>OutputCode=deltarow</tt></b></a>
  100. <li><a href="#STC_model"><b><tt>Model</tt></b></a>
  101. </ul>
  102. <li><a href="#STC_Pitfalls">Bugs and pitfalls</a>
  103. <li><a href="#STC_Tests">Tests</a>
  104. <ul>
  105. <li><a href="#STC_OutputCodes">The various OutputCodes</a>
  106. <li><a href="#STC_printing_time">Printing time related to other options</a>
  107. </ul>
  108. <li><a href="#STC_acks">Acknowledgments</a>
  109. </ul>
  110. <li><a href="#Uniprint">uniprint, a flexible unified printer driver</a>
  111. <ul>
  112. <li><a href="#Uni_state">The state of this driver</a>
  113. <li><a href="#Uni_background">Notes on <b><tt>uniprint</tt></b>'s background</a>
  114. <li><a href="#Uni_make_pfile">Godzilla's guide to the creation of Unified Printer Parameter (<b><tt>.upp</tt></b>) files</a>
  115. <li><a href="#Uni_all_parameters">All parameters in brief</a>
  116. <li><a href="#Uni_honors"><b><tt>Uniprint</tt></b>'s Roll of Honor</a>
  117. <li><a href="#Uni_weaving_howto"><b><tt>Uniprint</tt></b> weaving parameters howto</a></li>
  118. <li><a href="#Uni_esc300">Extension to <b><tt>uniprint</tt></b> for the Epson Stylus Color 300</a></li>
  119. </ul>
  120. <li><a href="#SPARCprinter">Sun SPARCprinter</a>
  121. <ul>
  122. <li><a href="#SPARC_install">Installation</a>
  123. <li><a href="#SPARC_problems">Problems</a>
  124. </ul>
  125. <li><a href="#Apple">Apple dot matrix printer</a>
  126. </ul></blockquote>
  127. <!-- [1.2 end table of contents] =========================================== -->
  128. <!-- [1.3 begin hint] ====================================================== -->
  129. <p>For other information, see the <a href="Readme.htm">Ghostscript
  130. overview</a>. You may also be interested in <a href="Make.htm">how to
  131. build Ghostscript</a> and <a href="Install.htm">install it</a>, as well as
  132. the description of the <a href="Drivers.htm">driver interface</a>.
  133. <!-- [1.3 end hint] ======================================================== -->
  134. <hr>
  135. <!-- [1.0 end visible header] ============================================== -->
  136. <!-- [2.0 begin contents] ================================================== -->
  137. <h2><a name="Measurements"></a>Notes on measurements</h2>
  138. <p>
  139. Several different important kinds of measures appear throughout this
  140. document: inches, centimeters and millimeters, points, and bits per pixel.
  141. <dl>
  142. <dt><b>Inches</b>
  143. <dd>1 inch equals 2.54 centimeters. The inch measure is sometimes
  144. represented by "<b>in</b>" or a quotation mark (<b>&quot;</b>) to the right
  145. of a measure, like <b>8.5in</b> or <b>8.5""</b>. Dots per inch,
  146. "<b>dpi</b>", are the common measure of printing resolution for dot-matrix,
  147. laser, and ink-jet printers. U.S. "letter" paper is exactly
  148. 8.5in&times;11in, approximately 21.6cm&times;27.9cm. (See in the usage
  149. documentation all the <a href="Use.htm#Known_paper_sizes">paper sizes
  150. predefined in Ghostscript</a>.)
  151. <dt><b>Centimeters</b> and <b>millimeters</b>
  152. <dd>ISO standard paper sizes such as A4 and A3 are commonly represented in
  153. the SI units of centimeters and millimeters. Centimeters are abbreviated
  154. "<b><tt>cm</tt></b>", millimeters "<b><tt>mm</tt></b>". ISO A4 paper is
  155. quite close to 21.0&times;29.7 centimeters (approximately 8.3&times;11.7
  156. inches).
  157. <dt><b>Points</b>
  158. <dd>Points are a measure traditionally used in the printing trade and now
  159. in PostScript, which specifies exactly 72 points per inch (approximately
  160. 28.35 per centimeter). The <a href="Use.htm#Known_paper_sizes">paper sizes
  161. known to Ghostscript</a> are defined in the initialization file
  162. <b><tt>gs_statd.ps</tt></b> in terms of points.
  163. <dt><b>Bits per pixel</b>
  164. <dd>Commonly abbreviated "<b><tt>bpp</tt></b>".
  165. </dl>
  166. <hr>
  167. <h2><a name="IJS"></a>IJS - Inkjet and other raster devices</h2>
  168. <p>
  169. IJS is a relatively new initiative to improve the quality and ease of
  170. use of inkjet printing with Ghostscript. Using IJS, you can add new
  171. drivers, or upgrade existing ones, without recompiling Ghostscript.
  172. All driver authors are encouraged to adapt their drivers for IJS, and
  173. if there is an IJS driver available for your printer, it should be
  174. your first choice.
  175. </p>
  176. <p>Please see the <a href="http://www.linuxprinting.org/ijs/">IJS web
  177. page</a> for more information about IJS, including a listing of
  178. IJS-compatible drivers.
  179. </p>
  180. <p>
  181. A typical command line for IJS is:
  182. </p>
  183. <blockquote>
  184. <b><tt>
  185. gs -DSAFER -sDEVICE=ijs -sIjsServer=hpijs
  186. -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 990'
  187. -DIjsUseOutputFD -sOutputFile=/dev/usb/lp1 -DNOPAUSE --
  188. examples/tiger.eps
  189. </tt></b>
  190. </blockquote>
  191. <p>
  192. Individual IJS command line parameters are as follows:
  193. </p>
  194. <dl>
  195. <dt><b><tt>-sIjsServer=</tt></b><em>{path}</em>
  196. <dd>Sets the pathname for the IJS server (ie printer driver).
  197. Ghostscript will spawn a new process for this driver, and communicate
  198. with it using the IJS protocol. The pathname need not be absolute,
  199. as the PATH environment variable is searched, but it's probably a good
  200. idea for robustness and security. Note also that if -dSAFER is not
  201. specified, it's possible for PostScript code to set this parameter,
  202. so it can cause arbitrary code to be executed. See the section on <a
  203. href="Use.htm#Security">Security</a> for more information.
  204. </dl>
  205. <dl>
  206. <dt><b><tt>-sDeviceManufacturer=</tt></b><em>{name}</em>
  207. <dt><b><tt>-sDeviceModel=</tt></b><em>{name}</em>
  208. <dd>These parameters select the device according to IEEE-1284 standard
  209. device ID strings. In general, consult the documentation for the
  210. driver to find the appropriate settings. Note that, if the value
  211. contains a space, you'll want to quote the value in your shell, as
  212. in the example above.
  213. </dl>
  214. <dl>
  215. <dt><b><tt>-sIjsParams=</tt></b><em>{params}</em>
  216. <dd>This parameter allows you to set arbitrary IJS parameters on
  217. the IJS driver. The format is a comma-separated list of
  218. <b><tt>key=value</tt></b> pairs. If it is necessary to send a
  219. value containing a comma or backslash, it can be escaped with
  220. a backslash. Thus, <b><tt>'-sIjsParams=Foo=bar,Baz=a\,b'</tt></b> sets
  221. the parameter Foo to "bar", and Baz to "a,b".
  222. </dl>
  223. <dl>
  224. <dt><b><tt>-dIjsUseOutputFD</tt></b>
  225. <dd>This flag indicates that Ghostscript should open the output file
  226. and pass a file descriptor to the server. If not set, Ghostscript
  227. simply passes the filename set in OutputFile to the server. In most
  228. cases, this flag won't matter, but if you have a driver which works
  229. only with OutputFD (such as hpijs 1.0.2), or if you're using the
  230. -sOutputFile="|cmd" syntax, you'll need to set it.
  231. </dl>
  232. <dl>
  233. <dt><b><tt>-dBitsPerSample=</tt></b><em>N</em>
  234. <dd>This parameter controls the number of bits per sample. The
  235. default value of 8 should be appropriate for most work. For monochrome
  236. images, use -dBitsPerSample=1.
  237. </dl>
  238. <p>Generic Ghostscript options that are particularly relevant for IJS
  239. are summarized below:
  240. </p>
  241. <dl>
  242. <dt><b><tt>-r</tt></b><em>number</em>
  243. <br><b><tt>-r</tt></b><em>number1</em><b><tt>x</tt></b><em>number2</em>
  244. <dd>Sets the resolution, in dpi. If the resolution is not specified,
  245. Ghostscript queries the IJS server to determine the preferred resolution.
  246. When the resolution is specified, it overrides the value (if any)
  247. preferred by the IJS server.
  248. </dl>
  249. <dl>
  250. <dt><b><tt>-dDuplex</tt></b>
  251. <dt><b><tt>-dTumble</tt></b>
  252. <dd>These flags enable duplex (two-sided) printing. Tumble controls
  253. the orientation. When Tumble is false, the pages
  254. are oriented suitably at the left or right. When Tumble is true,
  255. the pages are oriented suitably for binding at the top or
  256. bottom.
  257. </dl>
  258. <dl>
  259. <dt><b><tt>-sProcessColorModel=</tt></b><em>{name}</em>
  260. <dd>Use this flag to select the process color model. Suitable values
  261. include DeviceGray, DeviceRGB, and DeviceCMYK.
  262. </dl>
  263. <h3>Building IJS</h3>
  264. <p> IJS is included by default on Unix gcc builds, and also in
  265. autoconf'ed builds. Others may need some makefile tweaking. First,
  266. make sure the IJS device is selected:
  267. <blockquote>
  268. DEVICE_DEVS2=$(DD)ijs.dev
  269. </blockquote>
  270. <p> Next, make sure that the path and execution type are set in
  271. the toplevel makefile. The values for Unix are as follows:
  272. <blockquote>
  273. IJSSRCDIR=ijs
  274. IJSEXECTYPE=unix
  275. </blockquote>
  276. <p> At present, "unix" and "win" are the only supported values for
  277. IJSEXECTYPE. If neither sounds appropriate for your system, it's
  278. possible that more porting work is needed.
  279. <p> Last, make sure that ijs.mak is included in the toplevel makefile.
  280. It should be present right after the include of icclib.mak.
  281. <p> IJS is not inherently platform-specific. We're very much interested
  282. in taking patches from people who have ported it to non-mainstream
  283. platforms. And once it's built, you won't have to recompile Ghostscript
  284. to support new drivers!
  285. <h2><a name="Win"></a>MS Windows printers</h2>
  286. <p>
  287. This section was written by Russell Lang, the author of Ghostscript's
  288. MS&nbsp;Windows-specific printer driver, and updated by
  289. <a href="mailto:Pierre.Arnaud@opac.ch">Pierre Arnaud</a>,
  290. the current maintainer.
  291. </p>
  292. <p>
  293. The <b><tt>mswinpr2</tt></b> device uses MS&nbsp;Windows printer drivers, and
  294. thus should work with any printer with device-independent bitmap (DIB)
  295. raster capabilities. The printer resolution cannot be selected directly
  296. using PostScript commands from Ghostscript: use the printer setup in the
  297. Control Panel instead. It is however possible to specify a maximum resolution
  298. for the printed document (see below).
  299. </p>
  300. <p>
  301. If no Windows printer name is specified in <b><tt>-sOutputFile</tt></b>,
  302. Ghostscript prompts for a Windows printer using the standard Print Setup
  303. dialog box. You must set the orientation to Portrait and the page size to
  304. that expected by Ghostscript; otherwise the image will be clipped.
  305. Ghostscript sets the physical device size to that of the Windows printer
  306. driver, but it does not update the PostScript clipping path.
  307. </p>
  308. <p>
  309. If a Windows printer name is specified in <b><tt>-sOutputFile</tt></b> using
  310. the format <tt>"\\spool\printer_name"</tt>, for instance
  311. </p>
  312. <blockquote><b><tt>
  313. gs ... -sOutputFile="\\spool\Apple LaserWriter II NT"
  314. </tt></b></blockquote>
  315. <p>
  316. then Ghostscript attempts to open the Windows printer without prompting
  317. (except, of course, if the printer is connected to <b><tt>FILE:</tt></b>).
  318. Ghostscript attempts to set the Windows printer page size and orientation
  319. to match that expected by Ghostscript, but doesn't always succeed. It uses
  320. this algorithm:
  321. </p>
  322. <ol>
  323. <li>If the requested page size matches one of the Windows standard page
  324. sizes +/- 2mm, request that standard size.</li>
  325. <li>Otherwise if the requested page size matches one of the Windows
  326. standard page sizes in landscape mode, ask for that standard size in
  327. landscape.</li>
  328. <li>Otherwise ask for the page size by specifying only its dimensions.</li>
  329. <li>Merge the requests above with the defaults. If the printer driver
  330. ignores the requested paper size, no error is generated: it will print on
  331. the wrong paper size.</li>
  332. <li>Open the Windows printer with the merged orientation and size.</li>
  333. </ol>
  334. <p>
  335. The Ghostscript physical device size is updated to match the Windows
  336. printer physical device.
  337. </p>
  338. <h3><a name="Win_properties"></a>Supported command-line parameters</h3>
  339. <p>
  340. The <b><tt>mswinpr2</tt></b> device supports a limited number of command-line
  341. parameters (e.g. it does not support setting the printer resolution). The
  342. recognized parameters are the following:
  343. </p>
  344. <blockquote>
  345. <dl>
  346. <dt><b><tt>-sDEVICE=mswinpr2</tt></b></dt>
  347. <dd>Selects the MS&nbsp;Windows printer device. If Ghostscript was not
  348. compiled with this device as the default output device, you have to specify
  349. it on the command line.</dd>
  350. <dt><b><tt>-dNoCancel</tt></b></dt>
  351. <dd>Hides the progress dialog, which shows the percent of the document page
  352. already processed and also provides a <em>cancel</em> button. This option
  353. is useful if GS is intended to print pages in the background, without any
  354. user intervention.</dd>
  355. <dt><b><tt>-sOutputFile=</tt></b><b>"\\spool\<em>printer_name</em>"</b></dt>
  356. <dd>Specifies which printer should be used. The <em>printer_name</em> should be
  357. typed exactly as it appears in the Printers control panel, including spaces.</dd>
  358. </dl>
  359. </blockquote>
  360. <h3><a name="Win_options"></a>Supported options (device properties)</h3>
  361. <p>
  362. Several extra options exist which cannot be set through the command-line,
  363. but only by executing the appropriate PostScript setup code. These options
  364. can be set through the inclusion of a setup file on the command-line:
  365. </p>
  366. <blockquote><b><tt>
  367. gs ... setup.ps ...
  368. </tt></b></blockquote>
  369. <p>
  370. The <tt>setup.ps</tt> file is responsible for the device selection, therefore
  371. you should not specify the <b><tt>-sDEVICE=mswinpr2</tt></b> option on the
  372. command-line if you are using such a setup file. Here is an example of such
  373. a setup file:
  374. </p>
  375. <blockquote><pre>
  376. mark
  377. /NoCancel true % don't show the cancel dialog
  378. /BitsPerPixel 4 % force 4 bits/pixel
  379. /UserSettings
  380. &lt;&lt;
  381. /DocumentName (Ghostscript document) % name for the Windows spooler
  382. /MaxResolution 360 % maximum document resolution
  383. &gt;&gt;
  384. (mswinpr2) finddevice % select the Windows device driver
  385. putdeviceprops
  386. setdevice
  387. </pre></blockquote>
  388. <p>
  389. This example disables the progress dialog (same as the <tt><b>-dNoCancel</b></tt>
  390. option), forces a 4 bits/pixel output resolution and specifies additional user
  391. settings, such as the document name (which will be displayed by the Windows
  392. spooler for the queued document) and the maximum resolution (here 360&nbsp;dpi).
  393. It then finds and selects an instance of the MS&nbsp;Windows device printer
  394. and activates it. This will show the standard printer dialog, since no
  395. <tt><b>/OutputFile</b></tt> property was specified.
  396. </p>
  397. <p>
  398. The following options are available:
  399. </p>
  400. <blockquote>
  401. <dl>
  402. <dt><b><tt>/NoCancel <em>boolean</em></tt></b></dt>
  403. <dd>Disables (hides) the progress dialog when set to <em><tt>true</tt></em> or
  404. show the progress dialog if not set or set to <em><tt>false</tt></em>.</dd>
  405. <dt><b><tt>/OutputFile <em>string</em></tt></b></dt>
  406. <dd>Specifies which printer should be used. The string should be of the form
  407. <tt><b>\\spool\<em>printer_name</em></b></tt>, where the <em>printer_name</em> should be
  408. typed exactly as it appears in the Printers control panel, including spaces.</dd>
  409. <dt><b><tt>/QueryUser <em>integer</em></tt></b></dt>
  410. <dd>Shows the standard printer dialog (<tt><b>1</b></tt> or any other value),
  411. shows the <em>printer setup dialog</em> (<tt><b>2</b></tt>) or selects the
  412. <em>default Windows printer</em> without any user interaction (<tt><b>3</b></tt>).</dd>
  413. <dt><b><tt>/BitsPerPixel <em>integer</em></tt></b></dt>
  414. <dd>Sets the device depth to the specified bits per pixel. Currently supported
  415. values are <tt><b>1</b></tt> (monochrome), <tt><b>4</b></tt> (CMYK with screening
  416. handled by Ghostscript) and <tt><b>24</b></tt> (True Color, dithering handled by
  417. the Windows printer driver; this option can produce huge print jobs).</dd>
  418. <dt><b><tt>/UserSettings <em>dict</em></tt></b></dt>
  419. <dd>Sets additional options, defined in a dictionary. The following properties can
  420. be set:
  421. <dl>
  422. <dt><b><tt>/DocumentName <em>string</em></tt></b></dt>
  423. <dd>Defines the user friendly document name which will be displayed by the
  424. Windows spooler.</dd>
  425. <dt><b><tt>/DocumentRange <em>[n1 n2]</em></tt></b></dt>
  426. <dd>Defines the range of pages contained in the document. This information can
  427. be used by the printer dialog, in conjunction with the following property.</dd>
  428. <dt><b><tt>/SelectedRange <em>[n1 n2]</em></tt></b></dt>
  429. <dd>Defines the selected range of pages. This information will be displayed in
  430. the printer dialog and will be updated after the user interaction. A PostScript
  431. program could check these values and print only the selected page range.</dd>
  432. <dt><b><tt>/MaxResolution <em>dpi</em></tt></b></dt>
  433. <dd>Specifies the maximum tolerated output resolution. If the selected printer has
  434. a higher resolution than <tt><b>dpi</b></tt>, then Ghostscript will render the
  435. document with a submultiple of the printer resolution. For example, if
  436. <tt><b>MaxResolution</b></tt> is set to 360 and the output printer supports
  437. up to 1200 dpi, then Ghostscript renders the document with an internal
  438. resolution of 1200/4=300 dpi. This can be very useful to reduce the memory
  439. requirements when printing in True Color on some high resolution ink-jet color
  440. printers.</dd>
  441. </dl></dd>
  442. </dl>
  443. </blockquote>
  444. <p>
  445. These properties can be queried through the <tt><b>currentpagedevice</b></tt>
  446. operator. The following PostScript code snippet shows how to do it for some
  447. of the properties:
  448. </p>
  449. <blockquote><pre>
  450. currentpagedevice /BitsPerPixel get == % displays the selected depth
  451. currentpagedevice /UserSettings get % get the additional options..
  452. /us exch def % ..and assign them to a variable
  453. us /DocumentName get == % displays the document name
  454. us /SelectedRange get == % displays the selected page range
  455. % other misc. informations (don't rely on them)
  456. us /Color get == % 1 => monochrome output, 2 => color output
  457. us /PrintCopies get == % displays the number of copies requested
  458. </pre></blockquote>
  459. <p>
  460. There are a few undocumented informations stored in the <tt><b>UserSettings</b></tt>
  461. dictionary. You should not rely on them. Their use is still experimental and
  462. they could be removed in a future version.
  463. </p>
  464. <h3><a name="Win_duplex"></a>Duplex printing</h3>
  465. <p>
  466. If the Windows printer supports the duplex printing feature, then it will
  467. also be available through the <b><tt>mswinpr2</tt></b> device. You can query
  468. for this support through the <b><tt>/Duplex</tt></b> propery of the
  469. <b><tt>currentpagedevice</tt></b>. If it returns <b><tt>null</tt></b>, then
  470. the feature is not supported by the selected printer. Otherwise, <b><tt>true</tt></b>
  471. means that the printer is currently set up to print on both faces of the paper
  472. and <b><tt>false</tt></b> that it is not, but that it can.
  473. </p>
  474. <p>
  475. The following example shows how to print on both faces of the paper (using
  476. the long side of the paper as the reference):
  477. </p>
  478. <blockquote><pre>
  479. &lt;&lt; /Duplex true /Tumble false &gt;&gt; setpagedevice
  480. </pre></blockquote>
  481. <p>
  482. </p>
  483. <hr>
  484. <h2><a name="File_formats"></a>File formats</h2>
  485. <h3><a name="JFIF"></a>JPEG file format (JFIF)</h3>
  486. <p>
  487. Ghostscript includes output drivers that can produce <a
  488. href="http://www.ijg.org/">Independent JPEG Group</a> JFIF (JPEG File
  489. Interchange Format) files from PostScript images. <b>Please note</b> that
  490. JPEG is a compression method specifically intended for continuous-tone
  491. images such as photographs, not for graphics, and it is therefore quite
  492. unsuitable for the vast majority of page images produced with PostScript,
  493. which should be saved in a form better for graphics, such as
  494. <a href="http://www.libpng.org/pub/png/">Portable Network Graphics</a>
  495. (PNG) format. If you get crummy-looking JPEG files, don't blame
  496. Ghostscript; instead consult a reference about uses and abuses of JPEG,
  497. such as the JPEG FAQ
  498. <blockquote>
  499. <a href="http://www.faqs.org/faqs/jpeg-faq/">http://www.faqs.org/faqs/jpeg-faq/</a>
  500. </blockquote>
  501. <p>
  502. You can use the JPEG output drivers -- <b><tt>jpeg</tt></b> to produce
  503. color JPEG files and <b><tt>jpeggray</tt></b> for grayscale JPEGs -- the
  504. same as other file-format drivers: by specifying the device name and an
  505. output file name, for example
  506. <blockquote><b><tt>
  507. gs -sDEVICE=jpeg -sOutputFile=foo.jpg foo.ps
  508. </tt></b></blockquote>
  509. <p>
  510. You can also use the <a href="Use.htm#Resolution_switch"><b><tt>-r</tt></b>
  511. switch</a> to specify the imaging resolution and thus the output file's
  512. size in pixels. The default resolution is normally 72&times;72dpi.
  513. <p>
  514. The JPEG devices support several special parameters to control the JPEG
  515. "quality setting" (DCT quantization level).
  516. <blockquote>
  517. <dl>
  518. <dt><b><tt>-dJPEGQ=</tt></b><b><em>N</em></b> (integer from 0 to 100, default 75)
  519. <dd>Set the quality level <b><em>N</em></b> according to the widely used
  520. IJG quality scale, which balances the extent of compression against the
  521. fidelity of the image when reconstituted. Lower values drop more
  522. information from the image to achieve higher compression, and therefore
  523. have lower quality when reconstituted.
  524. <dt><b><tt>-dQFactor=</tt></b><b><em>M</em></b> (float from 0.0 to 1.0)
  525. <dd>Adobe's QFactor quality scale, which you may use in place of
  526. <b><tt>JPEGQ</tt></b> above. The QFactor scale is used by PostScript's
  527. DCTEncode filter but is nearly unheard-of elsewhere.
  528. </dl>
  529. </blockquote>
  530. <p>
  531. At this writing the default JPEG quality level of 75 is equivalent to
  532. <b><tt>-dQFactor=0.5</tt></b>, but the JPEG default might change in the
  533. future. The JPEG drivers could be extended to support additional JPEG
  534. compression options, such as the other DCTEncode filter parameters, but so
  535. far they haven't been.
  536. <h3><a name="TIFF"></a>TIFF file formats</h3>
  537. <p>
  538. There are two unrelated sets of TIFF drivers. There are two color TIFF
  539. drivers that produce uncompressed output:
  540. <blockquote>
  541. <dl>
  542. <dt><b><tt>tiff12nc</tt></b>
  543. <dd>Produces 12-bit RGB output (4 bits per component).
  544. <dt><b><tt>tiff24nc</tt></b>
  545. <dd>Produces 24-bit RGB output (8 bits per component).
  546. </dl>
  547. </blockquote>
  548. <p>
  549. The remaining TIFF drivers all produce black-and-white output with different
  550. compression modes:
  551. <blockquote>
  552. <dl>
  553. <dt><b><tt>tiffcrle</tt></b>
  554. <dd>G3 fax encoding with no EOLs
  555. <dt><b><tt>tiffg3</tt></b>
  556. <dd>G3 fax encoding with EOLs
  557. <dt><b><tt>tiffg32d</tt></b>
  558. <dd>2-D G3 fax encoding
  559. <dt><b><tt>tiffg4</tt></b>
  560. <dd>G4 fax encoding
  561. <dt><b><tt>tifflzw</tt></b>
  562. <dd>LZW-compatible (tag = 5) compression
  563. <dt><b><tt>tiffpack</tt></b>
  564. <dd>PackBits (tag = 32773) compression
  565. </dl>
  566. </blockquote>
  567. <p>
  568. The black-and-white TIFF drivers support creation of files that are
  569. comprised of more than a single strip. Multi-strip files reduce the memory
  570. requirement on the reader, since readers need only store and process one
  571. strip at a time. These drivers provide two parameters beyond the standard
  572. set:
  573. <blockquote>
  574. <dl>
  575. <dt><b><tt>-dMaxStripSize=</tt><em>N</em></b> (non-negative integer; default = 0)
  576. <dd>Set the maximum (uncompressed) size of a strip.
  577. <dt><b><tt>-dAdjustWidth=</tt><em>true|false</em></b> (Boolean; default =
  578. true)
  579. <dd>If true, then if the requested page width is close to either A4 (1728
  580. columns) or B4 (2048 columns), set the page width to A4 or B4 respectively.
  581. </dl></blockquote>
  582. <p>
  583. The TIFF 6.0 specification, Section 7, page 27, recommends that the size of
  584. each strip be about 8 Kbytes. As an example, to generate the 'tiger' in
  585. tiffg4 format that has the recommended strip size, use:
  586. <blockquote><pre>
  587. gs -sDEVICE=tiffg4 -sOutputFile=tiger.tif -dMaxStripSize=8192 examples/tiger.ps
  588. </pre></blockquote>
  589. <p>
  590. If the value of the <b><tt>MaxStripSize</tt></b> parameter is smaller than a
  591. single image row, then no error will be generated, and the TIFF file will be
  592. generated correctly using one row per strip. Note that smaller strip sizes
  593. increase the size of the file by increasing the size of the StripOffsets and
  594. StripByteCounts tables, and by reducing the effectiveness of the compression
  595. which must start over for each strip.
  596. <p>
  597. If the value of MaxStripSize is 0 (the default), then the entire image will
  598. be a single strip.
  599. <hr>
  600. <h2><a name="Display_devices"></a>Display Devices</h2>
  601. <p>
  602. Ghostscript is often used for screen display of postscript and pdf documents.
  603. In many cases, a client or 'viewer' application calls the ghostscript engine
  604. to do the rasterization and handles the display of the resulting image itself,
  605. but it is also possible to invoke ghostscript directly and select an output
  606. device which directly handles displaying the image on screen.
  607. <p>
  608. This section describes the various display-oriented devices that are available
  609. in ghostscript.
  610. <h3><a name="x11_devices"></a>X Window System</h3>
  611. <p>
  612. Perhaps the most common use of of a display device is with the X Window System
  613. on unix-like systems. It is the default device on the command line client on
  614. such systems, and is used more creatively by the gv client application.
  615. <p>
  616. The available devices are:
  617. <dl>
  618. <dt><b>x11</b>
  619. <dd>This is the default device, handling display on X11R6.
  620. <dt><b>x11alpha</b>
  621. <dd>This is the x11 device, but with antialiasing. It is equivalent to
  622. invoking the x11 device with the options <tt>-dGraphicsAlphaBits=4
  623. -dTextAlphaBits=4 -dMaxBitmap=50000000</tt>.
  624. <dt><b>x11cmyk</b>
  625. <dd>This device rasterizes the image in the CMKY color space, then flattens
  626. it to RGB for display. It's intended for testing only.
  627. <dt><b>x11mono</b>
  628. <dd>This is a strict black-and-white device for 1-bit monochrome displays.
  629. <dt><b>x11gray2</b>
  630. <dd>This is a device for 2 bpp (4-level) monochrome displays.
  631. <dt><b>x11gray4</b>
  632. <dd>This is a device for 4 bpp (16-level) monochrome displays.
  633. </dl>
  634. <hr>
  635. <h2><a name="HP_ijs"></a>HP Deskjet official drivers</h2>
  636. <p>
  637. HP provides official drivers for many of their Deskjet printer models.
  638. In order to use these drivers, you will need the HP Inkjet Server as
  639. well as Ghostscript, available from <a
  640. href="http://hpinkjet.sourceforge.net">http://hpinkjet.sourceforge.net</a>.
  641. This version of Ghostscript includes the patch from version 0.97 of
  642. the hpijs software. If you are installing hpijs from an RPM, you will
  643. only need the hpijs RPM, not the ghostscript-hpijs one, as the code
  644. needed to work with hpijs is already included.
  645. <p>
  646. Note that newer version of the hpijs drivers support the IJS protocol.
  647. If you can, you should consider using the ijs driver instead. Among
  648. other things, the hpijs Ghostscript driver is Unix-only, and is untested
  649. on older Unix platforms.
  650. <p>
  651. As of the 0.97 version, hpijs supports the following printer models:
  652. <dl><dt><b>e-Series:</b>
  653. <dd>e-20
  654. <dt><b>DeskJet 350C Series:</b>
  655. <dd>350C
  656. <dt><b>DeskJet 600C Series:</b>
  657. <dd>600C, 660C, 670/672C, 670TV, 680/682C
  658. <dt><b>DeskJet 600C Series Photo:</b>
  659. <dd>610/612C, 640/648C, 690/692/693/694/695/697C
  660. <dt><b>DeskJet 630C Series:</b>
  661. <dd>630/632C
  662. <dt><b>DeskJet 800C Series:</b>
  663. <dd>810/812C, 830/832C, 840/842/843C, 880/882C, 895C
  664. <dt><b>DeskJet 900C Series, PhotoSmart::</b>
  665. <dd>930/932C, 950/952C, 970C, PhotoSmart 1000/1100
  666. <dt><b>DeskJet 990C, PhotoSmart:</b>
  667. <dd>960C, 980C, 990C, PhotoSmart 1215/1218
  668. </ul>
  669. <p>You will need to add the following line to your makefile:
  670. <blockquote>
  671. DEVICE_DEVS2=$(DD)DJ630.dev $(DD)DJ6xx.dev $(DD)DJ6xxP.dev $(DD)DJ8xx.dev $(DD)DJ9xx.dev $(DD)DJ9xxVIP.dev $(DD)AP21xx.dev
  672. </blockquote>
  673. <p>
  674. Please see <a
  675. href="http://hpinkjet.sourceforge.net">http://hpinkjet.sourceforge.net</a>
  676. for more information about this driver. Thanks to the folks at HP,
  677. especially David Suffield for making this driver available and working to
  678. integrate it with Ghostscript.
  679. <hr>
  680. <h2><a name="HP8_color_inkjet"></a>H-P 8xx, 1100, and 1600 color inkjet printers</h2>
  681. <p>
  682. This section, written by Uli Wortmann &lt;<a
  683. href="mailto:uliw@erdw.ethz.ch">uliw@erdw.ethz.ch</a>&gt;, deals with the
  684. DeskJet 670, 690, 850, 855, 870, 890, 1100, and 1600.
  685. <h3><a name="HP8_gdevcd8"></a>Drivers contained in <b><tt>gdevcd8.c</tt></b></h3>
  686. <p>
  687. The source module <b><tt>gdevcd8.c</tt></b> contains four generic drivers:
  688. <blockquote><table cellpadding=0 cellspacing=0>
  689. <tr valign=top> <td><b><tt>cdj670</tt></b>
  690. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  691. <td>HP DeskJet 670 and 690
  692. <tr valign=top> <td><b><tt>cdj850</tt></b>
  693. <td>&nbsp;
  694. <td>HP DeskJet 850, 855, 870, and 1100
  695. <tr valign=top> <td><b><tt>cdj890</tt></b>
  696. <td>&nbsp;
  697. <td>HP DeskJet 890
  698. <tr valign=top> <td><b><tt>cdj1600</tt></b>
  699. <td>&nbsp;
  700. <td>HP DeskJet 1600
  701. </table></blockquote>
  702. <h3><a name="HP8_further_documentation"></a>Further documentation</h3>
  703. <p>
  704. <b>Credits:</b> Much of the driver is based on ideas derived from the
  705. cdj550 driver of George Cameron. The support for the hp670, hp690, hp890
  706. and hp1600 was added by Martin Gerbershagen.
  707. <blockquote><table cellpadding=0 cellspacing=0>
  708. <tr valign=top> <td>11.11.96
  709. <td>&nbsp;&nbsp;&nbsp;
  710. <td>Version 1.0
  711. <td>&nbsp;&nbsp;&nbsp;
  712. <td>&nbsp;
  713. <tr valign=top> <td>25.08.97
  714. <td>&nbsp;
  715. <td>Version 1.2
  716. <td>&nbsp;
  717. <td>Resolved all but one of the known bugs, introduced a couple of
  718. perfomance improvements. Complete new color-transfer-function
  719. handling (see gamma).
  720. <tr valign=top> <td>01.06.98
  721. <td>&nbsp;
  722. <td>Version 1.3
  723. <td>&nbsp;
  724. <td>Due to the most welcome contribution of Martin Gerbershagen
  725. (ger@ulm.temic.de), support for the hp670, hp690 and hp890 and
  726. hp1600 has been added. Martin has also resolved all known bugs.
  727. <tr valign=top> <td>&nbsp;
  728. <td>&nbsp;
  729. <td>&nbsp;
  730. <td>&nbsp;
  731. <td>Problems:Dark colors are still pale.
  732. </table></blockquote>
  733. <p>
  734. The hp690 is supported through the hp670 device, the hp855, hp870 and the
  735. hp1100 through the hp850 device. The driver needs no longer special
  736. switches to be invoked except <b><tt>-sDEVICE=cdj850</tt></b>,
  737. <b><tt>-sDEVICE=CDJ890</tt></b>, <b><tt>-sDEVICE=CDJ670</tt></b>, or
  738. <b><tt>-sDevice=CDJ1600</tt></b>. The following switches are supported.
  739. <blockquote><table cellpadding=0 cellspacing=0>
  740. <tr valign=top> <td><b><tt>-dPapertype=</tt></b>
  741. <td>&nbsp;&nbsp;&nbsp;
  742. <td>0
  743. <td>&nbsp;&nbsp;&nbsp;
  744. <td>plain paper [default]
  745. <tr valign=top> <td>
  746. <td>&nbsp;
  747. <td>1
  748. <td>&nbsp;
  749. <td>bond paper
  750. <tr valign=top> <td>
  751. <td>&nbsp;
  752. <td>2
  753. <td>&nbsp;
  754. <td>special paper
  755. <tr valign=top> <td>
  756. <td>&nbsp;
  757. <td>3
  758. <td>&nbsp;
  759. <td>glossy film
  760. <tr valign=top> <td>
  761. <td>&nbsp;
  762. <td>4
  763. <td>&nbsp;
  764. <td>transparency film
  765. <tr valign=top> <td>
  766. <td>&nbsp;
  767. <td>&nbsp;
  768. <td>&nbsp;
  769. <td>Currently the lookup tables are unsuited for printing on
  770. special paper or transparencies. For these please revert to the
  771. gamma functions.
  772. <tr valign=top> <td><b><tt>-dQuality=</tt></b>
  773. <td>&nbsp;
  774. <td>-1
  775. <td>&nbsp;
  776. <td>draft
  777. <tr valign=top> <td>
  778. <td>&nbsp;
  779. <td>0
  780. <td>&nbsp;
  781. <td>normal [default]
  782. <tr valign=top> <td>
  783. <td>&nbsp;
  784. <td>1
  785. <td>&nbsp;
  786. <td>presentation
  787. <tr valign=top> <td><b><tt>-dRetStatus=</tt></b>
  788. <td>&nbsp;
  789. <td>0
  790. <td>&nbsp;
  791. <td>C-RET off
  792. <tr valign=top> <td>
  793. <td>&nbsp;
  794. <td>1
  795. <td>&nbsp;
  796. <td>C-RET on [default]
  797. <tr valign=top> <td><b><tt>-dMasterGamma=</tt></b>
  798. <td>&nbsp;
  799. <td>3.0
  800. <td>&nbsp;
  801. <td>[default = 1.0]
  802. </table></blockquote>
  803. <blockquote>
  804. <b>Note:</b> To take advantage of the calibrated color-transfer functions,
  805. be sure not to have any gamma statements left! If you need to (i.e., for
  806. overhead transparencies), you still can use the gamma functions, but they
  807. will override the built-in calibration. To use gamma in the traditional
  808. way, set MasterGamma to any value greater than 1.0 and less than 10.0. To
  809. adjust individual gamma values, you have to additionally set MasterGamma to
  810. a value greater than 1.0 and less than 10.0. With the next release, gamma
  811. functions will be dropped.
  812. </blockquote>
  813. <p>
  814. When using the driver, be aware that printing at 600dpi involves
  815. processing large amounts of data (&gt; 188MB !). Therefore the
  816. driver is not what you would expect to be a fast driver ;-)
  817. This is no problem when printing a full-sized color page (because
  818. printing itself is slow), but it's really annoying if you print only
  819. text pages. Maybe I can optimize the code for text-only pages in a
  820. later release. Right now, it is recommended to use the highest
  821. possible optimisation level your compiler offers.
  822. For the time being, use the cdj550 device with <b><tt>-sBitsPerPixel=3</tt></b>
  823. for fast proof prints. If you simply want to print 600dpi BW data,
  824. use the cdj550 device with <b><tt>-sBitsPerPixel=8</tt></b> (or 1).
  825. <p>
  826. Since the printer itself is slow, it may help to set the process priority
  827. of the gs process to "regular" or even less. On a 486/100MHz this is still
  828. sufficient to maintain a continuous data flow. Note to OS/2 users: simply
  829. put the gs window into the background or minimize it. Also make sure that
  830. <b><tt>print01.sys</tt></b> is invoked without the <b><tt>/irq</tt></b>
  831. switch (great speed improvement under Warp4).
  832. <p>
  833. The printer default settings compensate for dot-gain by a calibrated
  834. color-transfer function. If this appears to be too light for your business
  835. graphs, or for overhead transparencies, feel free to set
  836. <b><tt>-dMasterGamma=1.7</tt></b>. Furthermore, you may tweak the gamma
  837. values independently by setting <b><tt>-dGammaValC</tt></b>,
  838. <b><tt>-dGammaValM</tt></b>, <b><tt>-dGammaValY</tt></b> or
  839. <b><tt>-dGammaValK</tt></b> (if not set, the values default to
  840. <b><tt>MasterGamma</tt></b>). This will only work when
  841. <b><tt>-dMasterGamma</tt></b> is set to a value greater than 1.0.
  842. <p>
  843. Further information, bugs, tips etc, can be found at my website. To learn
  844. more about gamma, see
  845. <a href="ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf">ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf</a>.
  846. <p>
  847. Depending on how you transfer the files, under UNIX you may need to remove
  848. the CRs of the CR-LF sequence used for end-of-line on DOS-based (MS
  849. Windows-based) systems. You can do this in unpacking the files with <b><tt>unzip&nbsp;-a&nbsp;hp850.zip</tt></b>.
  850. <p>
  851. To compile with gs5.x or later, simply add to your makefile
  852. <blockquote>
  853. DEVICE_DEVS4=cdj850.dev cdj670.dev cdj890.dev cdj1600.dev
  854. </blockquote>
  855. <p>
  856. Have fun!
  857. <p>
  858. Uli &lt;<a href="mailto:uliw@erdw.ethz.ch">uliw@erdw.ethz.ch</a>&gt;
  859. <br><a href="http://www.erdw.ethz.ch/~bonk/">http://www.erdw.ethz.ch/~bonk/</a>
  860. <hr>
  861. <h2><a name="HP880_color_inkjet"></a>H-P 812, 815, 832, 880, 882, 895, and 970 color inkjet printers</h2>
  862. <p>
  863. This section, written by Matthew Gelhaus &lt;<a
  864. href="mailto:hp880@gelhaus.net">hp880@gelhaus.net</a>&gt;, deals with the
  865. DeskJet 812, 815, 832, 880, 882, 895, and 970.
  866. <p>
  867. This is a modified version of the <a href="#HP8_color_inkjet">HP8xx driver</a>
  868. written by Uli Wortmann. More information and download are available at
  869. <a href="http://www.gelhaus.net/hp880c/">http://www.gelhaus.net/hp880c/</a>.
  870. <h3><a name="HP880_gdevcd8"></a>Drivers contained in <b><tt>gdevcd8.c</tt></b></h3>
  871. <p>
  872. The source module <b><tt>gdevcd8.c</tt></b> contains one generic driver:
  873. <blockquote><table cellpadding=0 cellspacing=0>
  874. <tr valign=top> <td><b><tt>cdj880</tt></b>
  875. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  876. <td>HP DeskJet 812, 815, 832, 880, 882, 895, and 970
  877. </table></blockquote>
  878. <h3><a name="HP880_further_documentation"></a>Further documentation</h3>
  879. <p>
  880. <b>Credits:</b> This driver is based on the cdj850 driver by Uli Wortmann, and shares the same
  881. internal structure, although the PCL3+ interpretation has changed.
  882. <blockquote><table cellpadding=0 cellspacing=0>
  883. <tr valign=top> <td>15.03.99
  884. <td>&nbsp;&nbsp;&nbsp;
  885. <td>Version 1.3
  886. <td>&nbsp;&nbsp;&nbsp;
  887. <td>Initial version, based on Version 1.3 of Uli Wortmann's driver.
  888. <tr valign=top> <td>26.02.00
  889. <td>&nbsp;
  890. <td>Version 1.4beta
  891. <td>&nbsp;
  892. <td>Greatly improved color handling & dithering, but not yet complete enough
  893. to use for text.
  894. </table></blockquote>
  895. <p>
  896. All printers are supported through the cdj880 device. Invoke with
  897. <b><tt>-sDEVICE=cdj880</tt></b>. The following switches are supported.
  898. <blockquote><table cellpadding=0 cellspacing=0>
  899. <tr valign=top> <td><b><tt>-dPapertype=</tt></b>
  900. <td>&nbsp;&nbsp;&nbsp;
  901. <td>0
  902. <td>&nbsp;&nbsp;&nbsp;
  903. <td>plain paper [default]
  904. <tr valign=top> <td>
  905. <td>&nbsp;
  906. <td>1
  907. <td>&nbsp;
  908. <td>bond paper
  909. <tr valign=top> <td>
  910. <td>&nbsp;
  911. <td>2
  912. <td>&nbsp;
  913. <td>special paper
  914. <tr valign=top> <td>
  915. <td>&nbsp;
  916. <td>3
  917. <td>&nbsp;
  918. <td>glossy film
  919. <tr valign=top> <td>
  920. <td>&nbsp;
  921. <td>4
  922. <td>&nbsp;
  923. <td>transparency film
  924. <tr valign=top> <td>
  925. <td>&nbsp;
  926. <td>&nbsp;
  927. <td>&nbsp;
  928. <td>Currently the lookup tables are unsuited for printing on
  929. special paper or transparencies. For these please revert to the
  930. gamma functions.
  931. <tr valign=top> <td><b><tt>-dQuality=</tt></b>
  932. <td>&nbsp;
  933. <td>-1
  934. <td>&nbsp;
  935. <td>draft
  936. <tr valign=top> <td>
  937. <td>&nbsp;
  938. <td>0
  939. <td>&nbsp;
  940. <td>normal [default]
  941. <tr valign=top> <td>
  942. <td>&nbsp;
  943. <td>1
  944. <td>&nbsp;
  945. <td>presentation
  946. <tr valign=top> <td><b><tt>-dMasterGamma=</tt></b>
  947. <td>&nbsp;
  948. <td>3.0
  949. <td>&nbsp;
  950. <td>[default = 1.0]
  951. </table></blockquote>
  952. <p>
  953. The printer default settings compensate for dot-gain by a pre-defined
  954. color-transfer function. If this appears to be too light for your business
  955. graphs, or for overhead transparencies, feel free to set
  956. <b><tt>-dMasterGamma=1.7</tt></b>. Furthermore, you may tweak the gamma
  957. values independently by setting <b><tt>-dGammaValC</tt></b>,
  958. <b><tt>-dGammaValM</tt></b>, <b><tt>-dGammaValY</tt></b> or
  959. <b><tt>-dGammaValK</tt></b> (if not set, the values default to
  960. <b><tt>MasterGamma</tt></b>). This will only work when
  961. <b><tt>-dMasterGamma</tt></b> is set to a value greater than 1.0.
  962. <p>
  963. Further information, bugs, tips etc, can be found at my website.
  964. <p>
  965. To compile with gs6.x or later, simply add to your makefile
  966. <blockquote>
  967. DEVICE_DEVS4=$(DD)cdj880.dev
  968. </blockquote>
  969. <p>
  970. Matthew Gelhaus &lt;<a href="mailto:hp880@gelhaus.net">mailto:hp880@gelhaus.net</a>&gt;
  971. <br><a href="http://www.gelhaus.net/hp880c/">http://www.gelhaus.net/hp880c/</a>
  972. <hr>
  973. <h2><a name="HP_color_inkjet"></a>H-P color inkjet printers</h2>
  974. <p>
  975. This section, written by George Cameron, deals with the DeskJet 500C,
  976. DeskJet 550C, PaintJet, PaintJet XL, PaintJet XL300, the DEC LJ250
  977. operating in PaintJet-compatible mode.
  978. <h3><a name="HP_gdevcdj"></a>Drivers contained in <b><tt>gdevcdj.c</tt></b></h3>
  979. <p>
  980. The source module <b><tt>gdevcdj.c</tt></b> contains six generic drivers:
  981. <blockquote><table cellpadding=0 cellspacing=0>
  982. <tr valign=top> <td><b><tt>cdj500</tt></b>
  983. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  984. <td>HP DeskJet 500C and 540C
  985. <tr valign=top> <td><b><tt>cdj550</tt></b>
  986. <td>&nbsp;
  987. <td>HP DeskJet 550C, 560C, 660C, 660Cse
  988. <tr valign=top> <td><b><tt>pjxl300</tt></b>
  989. <td>&nbsp;
  990. <td>HP PaintJet XL300, DeskJet 1200C, and CopyJet
  991. <tr valign=top> <td><b><tt>pjtest</tt></b>
  992. <td>&nbsp;
  993. <td>HP PaintJet
  994. <tr valign=top> <td><b><tt>pjxltest</tt></b>
  995. <td>&nbsp;
  996. <td>HP PaintJet XL
  997. <tr valign=top> <td><b><tt>declj250</tt></b>
  998. <td>&nbsp;
  999. <td>DEC LJ250
  1000. </table></blockquote>
  1001. <p>
  1002. All these drivers have 8-bit (monochrome), 16-bit and 24-bit (colour) and
  1003. for the DJ 550C, 32-bit (colour, CMYK mode) options in addition to standard
  1004. colour and mono drivers. It is also possible to set various
  1005. printer-specific parameters from the command line, for example
  1006. <blockquote><b><tt>
  1007. gs&nbsp;-sDEVICE=cDeskJet&nbsp;-dBitsPerPixel=16&nbsp;-dDepletion=1&nbsp;-dShingling=2&nbsp;tiger.ps
  1008. </tt></b></blockquote>
  1009. <p>
  1010. <b>Note:</b> the old names <b><tt>cDeskJet</tt></b>,
  1011. <b><tt>cdjcolor</tt></b> and <b><tt>cdjmono</tt></b> drivers have been
  1012. retained; however, their functionality duplicates that available using the
  1013. drivers above (and <b><tt>cDeskJet</tt></b> is identical to
  1014. <b><tt>cdj500</tt></b>). That is, we can use
  1015. <blockquote><table cellpadding=0 cellspacing=0>
  1016. <tr valign=top> <td><b><tt>gs -sDEVICE=cdj500 -dBitsPerPixel=24</tt></b>
  1017. <td>&nbsp;&nbsp;&nbsp;
  1018. <td>for <b><tt>cdjcolor</tt></b>, and
  1019. <tr valign=top> <td><b><tt>gs -sDEVICE=cdj500 -dBitsPerPixel=1</tt></b>
  1020. <td>&nbsp;
  1021. <td>for <b><tt>cdjmono</tt></b>
  1022. </table></blockquote>
  1023. <h3><a name="HP_paper_size"></a>Default paper size</h3>
  1024. <p>
  1025. If the preprocessor symbol <b><tt>A4</tt></b> is defined, the default paper
  1026. size is ISO A4; otherwise it is U.S. letter size (see about
  1027. <a href="Use.htm#Known_paper_sizes">paper sizes</a> in the usage
  1028. documentation). You can <a href="Use.htm#Paper_size">specify other paper
  1029. sizes</a> on the command line, including A3 for the PaintJet XL and
  1030. PaintJet XL300, as also explained in the usage documentation.
  1031. <h3><a name="HP_limits"></a>DeskJet physical limits</h3>
  1032. <p>
  1033. The DeskJet's maximum printing width is 2400 dots, or 8 inches
  1034. (20.32cm). The printer manuals say that the maximum recommended printing
  1035. height on the page is 10.3 inches (26.16cm), but since this is obviously
  1036. not true for A4 paper, and I have been unable to detect any problems in
  1037. printing longer page lengths, this would seem to be a rather artificial
  1038. restriction.
  1039. <p>
  1040. All DeskJets have 0.5 inches (1.27cm) of unprintable bottom margin, due to the mechanical
  1041. arrangement used to grab the paper. Side margins are approximately 0.25 inches (0.64cm)
  1042. for U.S. letter paper, and 0.15 inches (0.38cm) for A4.
  1043. <h4><a name="HP_command_line"></a>Printer properties (command-line parameters)</h4>
  1044. <p>
  1045. Several printer "properties" have been implemented for these printers.
  1046. Those available so far are all integer quantities, and thus may be
  1047. specified, for instance, like
  1048. <blockquote>
  1049. <b><tt>gs -dBitsPerPixel=32 -dShingling=1</tt></b> ...
  1050. </blockquote>
  1051. <p>
  1052. which sets the <b><tt>BitsPerPixel</tt></b> parameter to 32 and the
  1053. <b><tt>Shingling</tt></b> parameter to 1.
  1054. <h4><a name="HP_bpp"></a>Bits per pixel</h4>
  1055. <p>
  1056. If the preprocessor symbol <b><tt>BITSPERPIXEL</tt></b> is defined as an
  1057. integer (see below for the range of allowable values), that number defines
  1058. the default bits per pixel (bit depth) for the generic drivers. If the
  1059. symbol is undefined, the default is 24 bits per pixel. It is, of course,
  1060. still possible to specify the value from the command line as described
  1061. below. Note also that the <b><tt>cDeskJet</tt></b>,
  1062. <b><tt>cdjcolor</tt></b> and <b><tt>cdjmono</tt></b> drivers are unaffected
  1063. by setting this symbol, as their default settings are predefined to be 1, 3
  1064. and 24 respectively.
  1065. <p>
  1066. All of the drivers in <b><tt>gdevcdj.c</tt></b> accept a command line
  1067. option to set the <b><tt>BitsPerPixel</tt></b> property. This gives
  1068. considerable flexibility in choosing various tradeoffs among speed,
  1069. quality, colour, etc. The valid numbers are:
  1070. <blockquote><dl compact>
  1071. <dt><b>1</b>
  1072. <dd>A standard Ghostscript monochrome driver, using black ink (by
  1073. installing the separate mono cartridge in the case of the DeskJet 500C, or
  1074. automatically for the other printers).
  1075. <dt><b>3</b>
  1076. <dd>A standard Ghostscript colour driver, using internal dithering. This
  1077. is fast to compute and to print, but the clustered dithering can lose some
  1078. detail and colour fidelity.
  1079. <dt><b>8</b>
  1080. <dd>An "error-diffusion" monochrome driver which uses Floyd-Steinberg
  1081. dithering to print greyscale images. The patterns are much more randomised
  1082. than with the normal clustered dithering, but the data files can be much
  1083. larger and somewhat slower to print.
  1084. <dt><b>16</b>
  1085. <dd>A "cheaper" version of the 24-bit driver, which generates
  1086. Floyd-Steinberg colour dithered output using the minimum memory (this may
  1087. be helpful when using Ghostscript has not been compiled using a 16-bit
  1088. build environment). The quality can be almost as good as the 24-bit
  1089. version.
  1090. <dt><b>24</b>
  1091. <dd>A high-quality colour driver using Floyd-Steinberg dithering for
  1092. maximum detail and colour range. However, it is very memory-intensive, and
  1093. thus can be slow to compute. It tends to produce rather larger raw data
  1094. files, so they can also take longer to print.
  1095. <dt><b>32</b>
  1096. <dd>Only for the DeskJet 550C, which uses the black cartridge and the
  1097. colour cartridge simultaneously (that is, CMYK printing). This printer can
  1098. both be faster and give higher quality than the DeskJet 500C, because of
  1099. the true black ink. (Note that the 24-bit mode also permits CMYK printing
  1100. on this printer, and uses less memory. Any differences between 24-bit and
  1101. 32-bit should be small.)
  1102. </dl></blockquote>
  1103. <h4><a name="HP_DeskJet_properties"></a>DeskJet properties</h4>
  1104. <blockquote><table cellpadding=0 cellspacing=0>
  1105. <tr valign=bottom>
  1106. <th align=left>Name
  1107. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1108. <th align=left>Type
  1109. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1110. <th align=left>&nbsp;
  1111. <tr> <td colspan=5><hr>
  1112. <tr valign=top> <td><b><tt>BlackCorrect</tt></b>
  1113. <td>&nbsp;
  1114. <td><b><tt>int</tt></b>
  1115. <td>&nbsp;
  1116. <td>Colour correction to give better blacks when using the DJ500C in colour mode. For example, the default of 4 reduces the cyan component to 4/5. Range accepted: 0 - 9 (0 = none).
  1117. <tr valign=top> <td><b><tt>Shingling</tt></b>
  1118. <td>&nbsp;
  1119. <td><b><tt>int</tt></b>
  1120. <td>&nbsp;
  1121. <td>Interlaced, multi-pass printing: 0 = none, 1 = 50%, 2 = 25%, 2 is best and slowest.
  1122. <tr valign=top> <td><b><tt>Depletion</tt></b>
  1123. <td>&nbsp;
  1124. <td><b><tt>int</tt></b>
  1125. <td>&nbsp;
  1126. <td>"Intelligent" dot-removal: 0 = none, 1 = 25%, 2 = 50%, 1 best for graphics? Use 0 for transparencies.
  1127. </table></blockquote>
  1128. <h4><a name="HP_PaintJet_properties"></a>PaintJet XL300 / PaintJet XL properties</h4>
  1129. <blockquote>
  1130. <table cellpadding=0 cellspacing=0>
  1131. <tr valign=bottom>
  1132. <th align=left>Name
  1133. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1134. <th align=left>Type
  1135. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1136. <th align=left>
  1137. <tr> <td colspan=5><hr>
  1138. <tr valign=top> <td><b><tt>PrintQuality</tt></b>
  1139. <td>&nbsp;
  1140. <td><b><tt>int</tt></b>
  1141. <td>&nbsp;
  1142. <td>Mechanical print quality: -1 = fast, 0 = normal, 1 = presentation. Fast mode reduces ink usage and uses single-pass operation for some media types. Presentation uses more ink and the maximum number of passes, giving slowest printing for highest quality
  1143. <tr valign=top> <td><b><tt>RenderType</tt></b>
  1144. <td>&nbsp;
  1145. <td><b><tt>int</tt></b>
  1146. <td>&nbsp;
  1147. <td><dl compact>
  1148. <dt><b>0</b><dd>driver does dithering
  1149. <dt><b>1</b><dd>snap to primaries
  1150. <dt><b>2</b><dd>snap black to white, others to black
  1151. <dt><b>3</b><dd>ordered dither
  1152. <dt><b>4</b><dd>error diffusion
  1153. <dt><b>5</b><dd>monochrome ordered dither
  1154. <dt><b>6</b><dd>monochrome error diffusion
  1155. <dt><b>7</b><dd>cluster ordered dither
  1156. <dt><b>8</b><dd>monochrome cluster ordered dither
  1157. <dt><b>9</b><dd>user-defined dither (not supported)
  1158. <dt><b>10</b><dd>monochrome user-defined dither ns.
  1159. </dl>
  1160. </table>
  1161. <p>
  1162. The PaintJet (non-XL) has no additional properties.
  1163. </blockquote>
  1164. <h3><a name="HP_gamma"></a>Gamma correction</h3>
  1165. <p>
  1166. One consequence of using Floyd-Steinberg dithering rather than Ghostscript's
  1167. default clustered ordered dither is that it is much more obvious that the
  1168. ink dots are rather larger on the page than their nominal 1/180-inch or 1/300-inch
  1169. size (clustering the dots tends to minimise this effect). Thus it is often
  1170. the case that the printed result is rather too dark. A simple empirical
  1171. correction for this may be achieved by preceding the actual PostScript
  1172. file to be printed by a short file which effectively sets the gamma for
  1173. the device, such as
  1174. <blockquote><b><tt>
  1175. gs ... gamma.ps colorpic.ps -c quit
  1176. </tt></b></blockquote>
  1177. <p>
  1178. where <b><tt>gamma.ps</tt></b> is
  1179. <blockquote>
  1180. <pre>%!
  1181. /.fixtransfer {
  1182. currentcolortransfer 4 {
  1183. mark exch
  1184. dup type dup /arraytype eq exch /packedarraytype eq or
  1185. 1 index xcheck and { /exec load } if
  1186. 0.333 /exp load
  1187. ] cvx 4 1 roll
  1188. } repeat setcolortransfer
  1189. } bind odef
  1190. .fixtransfer
  1191. /setpagedevice { setpagedevice .fixtransfer } bind odef</pre>
  1192. </blockquote>
  1193. <p>
  1194. This does the gamma correction <b><em>after</em></b> whatever correction
  1195. the device might be doing already. To do the correction
  1196. <b><em>before</em></b> the current correction,
  1197. <blockquote>
  1198. <pre>%!
  1199. /.fixtransfer {
  1200. currentcolortransfer 4 {
  1201. mark 0.333 /exp load 4 -1 roll
  1202. dup type dup /arraytype eq exch /packedarraytype eq or
  1203. 1 index xcheck and { /exec load } if
  1204. ] cvx 4 1 roll
  1205. } repeat setcolortransfer
  1206. } bind odef
  1207. .fixtransfer
  1208. /setpagedevice { setpagedevice .fixtransfer } bind odef</pre>
  1209. </blockquote>
  1210. <p>
  1211. This example sets the gamma for R, G, and B to 3, which seems to work
  1212. reasonably well in practice.
  1213. <h3><a name="HP_resolution_enhance"></a>HP's resolution-enhanced mode for Inkjet printers</h3>
  1214. <p>
  1215. This feature is available on HP's more recent inkjet printers, including
  1216. the DeskJet 520 (mono), 540 (mono or colour) and 560C (mono and colour).
  1217. The colour and monochrome drivers for the HP DeskJet 550c are (probably)
  1218. the best you will get for use with Ghostscript, for the following reasons.
  1219. <p>
  1220. These printers do not offer true 600&times;300dpi resolution. Those that
  1221. print in colour are strictly 300&times;300dpi in colour mode, while in mono
  1222. mode there is a pseudo 600&times;300dpi mode with the restriction that you
  1223. can't print two adjacent dots. In effect what you have is 600dpi dot
  1224. positioning, but on average you don't get more dots per line. This
  1225. provides the possibility, for instance, to have sharper character outlines,
  1226. because you can place dots on the edges nearer to their ideal positions.
  1227. This is why it is worth doing.
  1228. <p>
  1229. However, HP will not support user-level programming of this
  1230. resolution-enhanced mode, one reason being that (I understand) all the dot
  1231. spacing has to be done by the driver, and if you get it wrong, you can
  1232. actually damage the print head.
  1233. <p>
  1234. To summarise, you may lose a smidgin of (potential) text clarity using the
  1235. 550c drivers (<b><tt>cdj550</tt></b>, <b><tt>cdjcolor</tt></b>,
  1236. <b><tt>cdjmono</tt></b> etc.), but other than that, they are the ones for
  1237. the job.
  1238. <h3><a name="HP_tips"></a>General tips</h3>
  1239. <p>
  1240. For all the printers above, the choice of paper is critically important to
  1241. the final results. The printer manuals suggest type of paper, but in
  1242. general, smoother, less fibrous types give better results. In particular,
  1243. the special ink-jet paper can make a big difference: colours are brighter,
  1244. but most importantly, there is almost no colour bleed, even with adjacent
  1245. areas of very heavy inking. Similarly the special coated transparencies
  1246. also work well (and ordinary transparencies do not work at all!).
  1247. <p>
  1248. The Unix procedure <a href="Unix-lpr.htm"><b><tt>unix-lpr.sh</tt></b></a>
  1249. provides one example of setting up a multi-option colour PostScript
  1250. <b><tt>lpr</tt></b> queue on Unix systems, and includes the ability to
  1251. choose a range of different colour options and printer accounting and error
  1252. logging.
  1253. <p>
  1254. <b>Caveat emptor!</b> It is not always easy for me to test all of these
  1255. drivers, as the only colour printer I have here is the DeskJet 500C. I rely
  1256. on others to test drivers for the additional machines and report their
  1257. findings back to me.
  1258. <hr>
  1259. <h2><a name="BJC_8200"></a>Canon BJC-8200 printer</h2>
  1260. <p>
  1261. This section was contributed by the author of the <b><tt>uniprint</tt></b>
  1262. configuration files for the Canon BJC-8200, Stephan C. Buchert &lt;<a
  1263. href="mailto:scb@stelab.nagoya-u.ac.jp">scb@stelab.nagoya-u.ac.jp</a>&gt;.
  1264. These files also handle the Japanese Canon F850 printer.
  1265. <p>
  1266. Warning: Usage of this program is neither supported nor endorsed by
  1267. the Canon corporation. Please see the Ghostscript <a
  1268. href="Public.htm">license</a> regarding warranty.
  1269. <h3>Introduction</h3>
  1270. <p>
  1271. The Canon Bubble Jet printer BJC-8200 is designed for printing digital
  1272. photos and halftone images. Software drivers for Windows 95-2000 and Mac are
  1273. usually included and can be downloaded from the Canon web sites like
  1274. <a href="http://consumer.usa.canon.com/bjc/bjc8200/">http://consumer.usa.canon.com/bjc/bjc8200/</a>
  1275. for the US market. If these drivers cannot be used for some reason, then at
  1276. present Ghostscript is probably the alternative giving the best results.
  1277. <p>
  1278. The BJC-8200 has features not found among the specs of earlier bubble jet
  1279. models (except the even more advanced BJC-8500) and is advertised to offer:
  1280. <ol>
  1281. <li>microfine droplet technology;
  1282. <li>support for printing on a new type of paper, Photo Paper Pro;
  1283. <li>a printhead capable of printing up to 1200 DpI;
  1284. <li>individual ink tanks for 6 colors;
  1285. <li>an internal status monitor reporting low ink back to a driver;
  1286. <li>an optional color scanner cartridge for up to 600 DpI resolution.
  1287. </ol>
  1288. <p>
  1289. Access to features 5 and 6 requires use of the original Canon drivers for
  1290. the foreseeable future. This README is about getting the printer features
  1291. 1-3 working with Ghostscript. No (re)compilation of Ghostscript is normally
  1292. required.
  1293. <p>
  1294. Ghostscript comes with a relatively highly configurable driver, called
  1295. <a href="#Uniprint">uniprint</a>, for printers which understand raster
  1296. images in various propriety formats. Most options for this driver are
  1297. usually organized into files having the suffix ".upp." Ghostscript
  1298. versions >= 5.10 (or even earlier) include such uniprint control files
  1299. for the Canon BJC-610. They work also well for some other Canon Bubble
  1300. Jet models, for example for my BJC-35vII. But when using them for a
  1301. BJC-8200 the result is unsatisfactory.
  1302. <h3>The uniprint control files for the BJC-8200</h3>
  1303. <p>
  1304. After some experimenting with the options for uniprint I have obtained quite
  1305. satisfactory prints with my printer(*). This distribution includes six new
  1306. uniprint control files:
  1307. <ul>
  1308. <li>bj8pp12f.upp
  1309. <li>bj8hg12f.upp
  1310. <li>bj8gc12f.upp
  1311. <li>bj8oh06n.upp
  1312. <li>bj8ts06n.upp
  1313. <li>bj8pa06n.upp
  1314. </ul>
  1315. <p>
  1316. They are included in Ghostscript >=6.21. For older versions you can put
  1317. them anywhere in the Ghostscript search path (type "gs -h" to see the
  1318. path), but should perhaps add the files to the directory with the
  1319. other *.upp files. This is "/usr/share/ghostscript/gs6.01/lib" in my
  1320. RedHat 6.1 Linux box with Aladdin Ghostscript 6.01.
  1321. <p>
  1322. Here is an explanation of my file name convention: the prefix "bj8" should
  1323. perhaps be used for the Canon BJC-8200 and compatible (like the Japanese
  1324. F850 and perhaps the non-Japanese BJC-8500) models. The next two letters
  1325. indicate the print media:
  1326. <ul>
  1327. <li>pp "Photo Paper Pro"
  1328. <li>hg "High Gloss Photo Film"
  1329. <li>gc "Glossy Photo Cards"
  1330. <li>oh "OHP transparencies"
  1331. <li>ts "T-shirt transfer"
  1332. <li>pa "Plain Paper"
  1333. </ul>
  1334. <p>
  1335. The numbers at positions 6 and 7 indicate the resolution
  1336. <ul>
  1337. <li>12 1200x1200 DpIxDpI
  1338. <li>06 600x600 DpIxDpI
  1339. </ul>
  1340. <p>
  1341. The last letter stands for a quality factor that effects also the print
  1342. speed (presumably related to the number of passes that the printhead makes).
  1343. <ul>
  1344. <li>f highest quality
  1345. <li>n normal quality
  1346. </ul>
  1347. <p>
  1348. Printing a postcard size (~10x15 cm^2) image at 1200x1200 DpI^2 takes about
  1349. 3 minutes. The output of Ghostscript is then typically 4-5 MByte. The
  1350. bootleneck seems to be the transfer of the raster image in run-length
  1351. encoded Canon format to the printer (via the parallel port on my system) or
  1352. the printer's speed, not Ghostscript or the uniprint renderer.
  1353. <h3>Further Optimization for the Canon BJC-8200</h3>
  1354. So far I have only experimented with the printer initialization code at the
  1355. beginning of each page (-dupBeginPageCommand) and the resolution (-r). Other
  1356. options, particularly the transfer arrays (-dupBlackTransfer,
  1357. -dupCyanTransfer, -dupMagentaTransfer, -dupYellowTransfer) and the margins
  1358. (-dupMargins) were simply copied from the files for the BJC-610, but they
  1359. may need to be changed for optimized performance.
  1360. <p>
  1361. Here is information useful for changing or adding uniprint control files for
  1362. the BJC-8200:
  1363. <p>
  1364. In "-dupBeginPageCommand=..." use the line
  1365. <blockquote>
  1366. 1b28 64 0400 04b0 04b0
  1367. </blockquote>
  1368. <p>
  1369. for 1200x1200 resolution, and
  1370. <blockquote>
  1371. 1b28 64 0400 0258 0258
  1372. </blockquote>
  1373. <p>
  1374. for 600x600. The "-r" option in the control file must of course match this
  1375. line. Other resolutions might work as well, but I didn't try.
  1376. <p>
  1377. Crucial are the numbers in the lines like
  1378. <blockquote><pre>
  1379. 1b28 63 0300 3005 04
  1380. ^ ^
  1381. Plain Paper 0 4 Highest quality
  1382. OHP transparency 2 .
  1383. T-shirt transfer 3 .
  1384. Glossy Photo Film 5 .
  1385. High Gloss Paper 6 0 Lowest quality
  1386. Photo Paper Pro 9
  1387. </pre></blockquote>
  1388. <h3>Outlook</h3>
  1389. <p>
  1390. Presently uniprint can use the black (K), cyan (C), magenta (M), and
  1391. yellow (Y) colors in the BJC-8200. The unused colors are photo (or
  1392. light) cyan (c) and magenta (m). Also the Canon driver seems to use
  1393. only CMYK, for example when printing on Photo Paper Pro in "Camera" or
  1394. "SuperPhoto" mode. These modes supposedly produce prints of the best
  1395. quality that the Canon driver can offer. Other modes of Canon driver
  1396. do use up to all six color cartridges (CMYKcm). Therefore expanding
  1397. uniprint's capabilities for six colors would be interesting, but it may
  1398. not increase the output quality of 6-color printers such as the
  1399. BJC-8200 drastically.
  1400. <p>
  1401. More control files for uniprint could be added in order to offer more
  1402. versatility for controlling the BJC-8200 within a Ghostscript
  1403. installation. The number of possible combinations for media type, resolution
  1404. and print quality factor is very large, many combinations would not make
  1405. much sense, many might be used here and there, but relatively rarely. The
  1406. user would have to remember a name for each combination that is used.
  1407. <p>
  1408. A better way would be to let the user patch optionally a user owned or
  1409. system wide uniprint control file before each print via some print
  1410. tool. This is similar to the approach taken by Canon with their driver for
  1411. Windows. Similarly a uniprint tool could also incorporate other functions
  1412. such as printing test and demo pages and the low ink warning once the
  1413. protocol for this is known. Clearly it would be difficult to code such a
  1414. uniprint tool for all the platforms where Ghostscript is running.
  1415. <h3>Usage on RedHat Linux</h3>
  1416. <p>
  1417. In order to install a BJC-8200 printer on a RedHat Linux system with
  1418. RedHat's printtool, you need also to insert with a text editor the contents
  1419. of the file <b><tt>bj8.rpd</tt></b> into the RedHat printer database
  1420. <b><tt>/usr/lib/rhs/rhs-printfilters/printerdb</tt></b>. Insert it most
  1421. appropriately after the section
  1422. <blockquote><pre>
  1423. StartEntry: U_CanonBJC610
  1424. .
  1425. .
  1426. .
  1427. EndEntry
  1428. < --- insert here "bj8.rpd" from this distribution:
  1429. < --- StartEntry: U_CanonBJC8200
  1430. .
  1431. .
  1432. .
  1433. </pre></blockquote>
  1434. <h3>Contacting the Author</h3>
  1435. <p>
  1436. E-mail address: &lt;<a
  1437. href="mailto:scb@stelab.nagoya-u.ac.jp">scb@stelab.nagoya-u.ac.jp</a>&gt;
  1438. <p>
  1439. Footnotes:
  1440. <p>
  1441. (*) Actually I have a F850, not a BJC-8200. That model is sold for the
  1442. Japanese market only. The specs and also the external look are the
  1443. same as those of the BJC-8200 models for the American and European
  1444. markets. I expect that the raster image mode which is used exclusively
  1445. by Ghostscript is entirely compatible for both models.
  1446. <p>
  1447. Stephan C. Buchert
  1448. <hr>
  1449. <h2><a name="BJC"></a>Other Canon BubbleJet (BJC) printers</h2>
  1450. <p>
  1451. This section was contributed by the author of the drivers, Yves Arrouye
  1452. (&lt;<a href="mailto:yves.arrouye@usa.net">yves.arrouye@usa.net</a>&gt;, but
  1453. please do not send questions to him: he no longer maintains these drivers.)
  1454. The drivers handle Canon BJC-600, BJC-4xxx, BJC-70, Stylewriter 2x00, and
  1455. BJC-800 printers.
  1456. <h3><a name="BJC_history"></a>History</h3>
  1457. <p>
  1458. The BJC-600 driver was written in the first place by Yoshio Kuniyoshi and
  1459. later modified by Yves Arrouye. We tried to make it evolve synchronously,
  1460. though Yoshio cannot be reached since a long time ago. The drivers are
  1461. based on code for the HP printers by George Cameron (in fact, they are in
  1462. the same file!), so he's the first person to thank.
  1463. <p>
  1464. The 2.00 version of the drivers was a complete rewrite of the driver
  1465. (arguments, optimization, colour handling, in short: everything!) by Yves
  1466. Arrouye. That release was also the first one to be able to use the full
  1467. width of an A3 paper size. PostScript Printer Description (PPD) files for
  1468. the drivers were released with version 2.15. They are incomplete,
  1469. but they can be used to drive the printers' main features.
  1470. <h3><a name="BJC_build"></a>Configuring and building the BJC drivers</h3>
  1471. <h4><a name="BJC_defaults"></a>Modify values in
  1472. <b><tt>gdevbjc.h</tt></b></h4>
  1473. <p>
  1474. Configure the drivers by modifying the default values in the file
  1475. <b><tt>gdevbjc.h</tt></b> or on the compilation line. If you don't do
  1476. that, the drivers use reasonable defaults that make them work "as
  1477. expected". All default values shown here are defined in that file.
  1478. <h4><a name="BJC_CMYK_RGB"></a>CMYK-to-RGB color conversion</h4>
  1479. <p>
  1480. By default, the drivers use the same algorithm as Ghostscript to convert
  1481. CMYK colors to RGB. If you prefer to use Adobe formulas, define
  1482. <b><tt>USE_ADOBE_CMYK_RGB</tt></b> when compiling. (See the top of the
  1483. file <b><tt>gdevcdj.c</tt></b> to see the difference between the two.)
  1484. <h4><a name="BJC_vertical_centering"></a>Vertical centering of the
  1485. printable area</h4>
  1486. <p>
  1487. The drivers center the imageable area horizontally but not vertically, so
  1488. that what can be printed does use the most of the output media. If you
  1489. define <b><tt>BJC_DEFAULT_CENTEREDAREA</tt></b> when compiling, then the
  1490. top and bottom margins will be the same, resulting in a (smaller)
  1491. vertically centered imageable area also.
  1492. <h4><a name="BJC_margins"></a>Page margins</h4>
  1493. <p>
  1494. If you define <b><tt>USE_RECOMMENDED_MARGINS</tt></b>, then the top and
  1495. bottom margins will be the same (that is,
  1496. <b><tt>BJC_DEFAULT_CENTEREDAREA</tt></b> will be defined for you) and the
  1497. margins will be the 12.4mm recommended by Canon. Since margins are
  1498. complicated (because one must rely on the mechanical precision of the
  1499. printer), the drivers do something about the bottom margin: by default the
  1500. bottom margin is 9.54mm for the BJC-600 driver and 7mm for the BJC-800. If
  1501. you define <b><tt>USE_TIGHT_MARGINS</tt></b>, then the bottom margin is 7mm
  1502. for both drivers (but I never managed to get my own BJC-600 to print a line
  1503. on this low bound, hence the larger default). Regardless of the presence
  1504. of this definition, <b><tt>USE_FIXED_MARGINS</tt></b> will not allow the
  1505. BJC-800 to use the lower 7mm bottom margin, so if you have a problem with
  1506. the bottom margin on a BJC-800, just define that (without defining
  1507. <b><tt>USE_TIGHT_MARGINS</tt></b>, of course).
  1508. <p>
  1509. A quick way to be sure the margins you selected is to print a file whose
  1510. contents are:
  1511. <blockquote><b><tt>
  1512. %!<br>
  1513. clippath stroke showpage
  1514. </tt></b></blockquote>
  1515. <p>
  1516. If the margins are okay, you will get a rectangle visibly surrounding
  1517. the printable area. If they're not correct, one or more of the sides will
  1518. be either incomplete or completely unprinted.
  1519. <h4><a name="BJC_compile"></a>Makefile and compilation</h4>
  1520. <p>
  1521. Make sure the <b><tt>bjc600</tt></b> or <b><tt>bjc800</tt></b> devices are
  1522. in <a href="Make.htm#Features_and_devices"><b><tt>DEVICE_DEVS</tt></b> in
  1523. the makefile</a>; that is, look in the makefile for your platform and add
  1524. them if necessary -- they may already be there. As of Ghostscript 5.10,
  1525. for instance, one makefile has
  1526. <blockquote><b><tt>
  1527. DEVICE_DEVS6=bj10e.dev&nbsp;bj200.dev&nbsp;bjc600.dev&nbsp;bjc800.dev
  1528. </tt></b></blockquote>
  1529. <h3><a name="BJC_usage"></a>Use of the drivers</h3>
  1530. <p>
  1531. There are two drivers here. The "<b><tt>bjc600</tt></b>" one supports the BJC-600 and
  1532. BJC-4xxx (maybe the BJC-70 as well) and the "<b><tt>bjc800</tt></b>" one supports the
  1533. BJC-800 series. Remarks here that apply to both drivers use the name
  1534. "bjc".
  1535. <h4><a name="BJC_options"></a>Supported Options and Defaults</h4>
  1536. <p>
  1537. Note: "options", "properties", and "parameters" designate the same thing:
  1538. device parameters that you can change.
  1539. <p>
  1540. Giving an option an incorrect value causes an error. Unless stated
  1541. otherwise, this error will be a rangecheckerror. Options may be set from
  1542. the Ghostscript command line (using the <b><tt>-d</tt></b> and
  1543. <b><tt>-s</tt></b> switches or other predetermined switches if they have an
  1544. effect on the driver) or using the PostScript Level 2
  1545. <b><tt>setpagedevice</tt></b> operator if Ghostscript has been compiled
  1546. with the <b><tt>level2</tt></b> or <b><tt>level3</tt></b> device (which it should
  1547. <b><tt>;-)</tt></b>). There are <b>no</b> special-purpose operators such as
  1548. one was able to find in Level 1 printers.
  1549. <p>
  1550. The bjc uses 24 bits per pixel by default (unless you change the value of
  1551. <b><tt>BJC_BITSPERPIXEL</tt></b>), corresponding to CMYK printing.
  1552. Supported modes are 1 bpp and 4 bpp (gray levels), 8 bpp, 16 bpp, 24 bpp
  1553. and 32 bpp (colours). Colours are preferably stored in the CMYK model
  1554. (which means, for example, that with 16 bpp there are only 16 different
  1555. shades of each color) but it is possible to store them as RGB color for
  1556. some depths. Some modes do Floyd-Steinberg dithering and some don't, but
  1557. use the default Ghostscript halftoning (in fact, when halftoning is used,
  1558. dithering takes also place but because of the low point density it is
  1559. usually not efficient, and thus invisible).
  1560. <blockquote><table cellpadding=0 cellspacing=0>
  1561. <tr><th colspan=5 bgcolor="#CCCC00"><hr><font size="+1">Descriptions of printing modes by bpp and <b><tt>Colors</tt></b></font><hr>
  1562. <tr valign=bottom>
  1563. <th align=left>bpp
  1564. <td>&nbsp;&nbsp;&nbsp;
  1565. <th align=left><b><tt>Colors</tt></b>
  1566. <td>&nbsp;&nbsp;&nbsp;
  1567. <th align=left>Mode
  1568. <tr> <td colspan=5><hr>
  1569. <tr valign=top> <td>32
  1570. <td>&nbsp;
  1571. <td align=center>4
  1572. <td>&nbsp;
  1573. <td>CMYK colour printing, Floyd-Steinberg dithering
  1574. <tr valign=top> <td>24
  1575. <td>&nbsp;
  1576. <td align=center>4
  1577. <td>&nbsp;
  1578. <td>The same. (But each primary colour is stored on 6 bits instead of 8.)
  1579. <tr valign=top> <td>24
  1580. <td>&nbsp;
  1581. <td align=center>3
  1582. <td>&nbsp;
  1583. <td>RGB colour printing, Floyd-Steinberg dithering. This mode does
  1584. <b><tt>not</tt></b> use the black cartridge (that's why it
  1585. exists, for when you don't want to use it <b><tt>;-)</tt></b>).
  1586. Each primary colour is stored in 8 bits as in the 32/4 mode,
  1587. but black generation and under-color removal are done on the
  1588. driver side and not by Ghostscript, so you have no control over
  1589. it. (This mode is no longer supported in this driver.)
  1590. <tr valign=top> <td>16
  1591. <td>&nbsp;
  1592. <td align=center>4
  1593. <td>&nbsp;
  1594. <td>CMYK colour printing, halftoned by Ghostscript. F-S dithering
  1595. is still visible here (but the halftone patterns are visible
  1596. too!).
  1597. <tr valign=top> <td>8
  1598. <td>&nbsp;
  1599. <td align=center>4
  1600. <td>&nbsp;
  1601. <td>The same. (But each primary colour is stored in 2 bits instead of 4.)
  1602. <tr valign=top> <td>8
  1603. <td>&nbsp;
  1604. <td align=center>3
  1605. <td>&nbsp;
  1606. <td>RGB colour printing. This mode is not intended for use. What I
  1607. mean is that it should be used only if you want to use custom
  1608. halftone screens <b>and</b> the halftoning is broken using the
  1609. 8/4 mode (some versions of Ghostscript have this problem).
  1610. <tr valign=top> <td>8
  1611. <td>&nbsp;
  1612. <td align=center>1
  1613. <td>&nbsp;
  1614. <td>Gray-level printing, Floyd-Steinberg dithering
  1615. <tr valign=top> <td>1
  1616. <td>&nbsp;
  1617. <td align=center>1
  1618. <td>&nbsp;
  1619. <td>Gray-level printing halftoned by Ghostscript
  1620. </table></blockquote>
  1621. <p>
  1622. These modes are selected using the <b><tt>BitsPerPixel</tt></b> <b>and</b>
  1623. <b><tt>Colors</tt></b> integer options (either from the command line or in
  1624. a PostScript program using <b><tt>setpagedevice</tt></b>). See below.
  1625. <p>
  1626. A note about darkness of what is printed: Canon printers do print dark,
  1627. really. And the Floyd-Steinberg dithering may eventually darken your image
  1628. too. So you may need to apply gamma correction by calling Ghostscript as in
  1629. <blockquote><b><tt>
  1630. gs -sDEVICE=bjc600 gamma.ps myfile.ps
  1631. </tt></b></blockquote>
  1632. <p>
  1633. where <b><tt>gamma.ps</tt></b> changes the gamma correction (here to 3 for
  1634. all colors); 0.45 gives me good results, but your mileage may vary. The
  1635. bigger the value the lighter the output:
  1636. <blockquote><b><tt>
  1637. { 0.45 exp } dup dup currenttransfer setcolortransfer
  1638. </tt></b></blockquote>
  1639. <p>
  1640. The drivers support printing at 90dpi, 180dpi and 360dpi. Horizontal and
  1641. vertical resolutions must be the same or a limitcheck error will happen. A
  1642. rangecheck will happen too if the resolution is not
  1643. 90&nbsp;&times;2^<small><sup><b>N</b></sup></small>. If the driver
  1644. is compiled with <b><tt>-DBJC_STRICT</tt></b> a rangecheck also happens if
  1645. the resolution is not one of those supported. This is not the case, as we
  1646. expect that there may be a 720dpi bjc some day.
  1647. <p>
  1648. Here are the various options supported by the bjc drivers, along with
  1649. their types, supported values, effects, and usage:
  1650. <dl>
  1651. <dt><b><tt>BitsPerPixel</tt></b> (int)
  1652. <dd>Choose the depth of the page. Valid values are 1, 8, 16, 24 (the
  1653. default) and 32.
  1654. <p>
  1655. Note that when this is set for the first time, the <b><tt>Colors</tt></b>
  1656. property is automatically adjusted unless it is also specified. The table
  1657. here shows the corresponding color models and the rendering method visible:
  1658. "GS" for Ghostscript halftoning and "F-S" for Floyd-Steinberg dithering.
  1659. When both are present it means that the dithering of halftones is visible.
  1660. Default choices are indicated by asterisk "*".
  1661. <blockquote><table cellpadding=0 cellspacing=0>
  1662. <tr><th colspan=9 bgcolor="#CCCC00"><hr><font size="+1">Valid <b><tt>Colors</tt></b> values for<br>allowed <b><tt>BitsPerPixel</tt></b> values
  1663. </font><hr>
  1664. <tr valign=bottom>
  1665. <th align=left>bpp
  1666. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1667. <th align=left><b><tt>Colors</tt></b>
  1668. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1669. <th align=left>&nbsp;
  1670. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1671. <th align=left>Color model
  1672. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  1673. <th align=left>Dithering
  1674. <tr> <td colspan=9><hr>
  1675. <tr valign=top> <td>32
  1676. <td>&nbsp;
  1677. <td align=center>4
  1678. <td>&nbsp;
  1679. <td>&nbsp;
  1680. <td align=center>&nbsp;
  1681. <td>CMYK
  1682. <td>&nbsp;
  1683. <td>F-S
  1684. <tr valign=top> <td>24
  1685. <td>&nbsp;
  1686. <td align=center>4
  1687. <td>&nbsp;
  1688. <td><b>*</b>
  1689. <td align=center>&nbsp;
  1690. <td>CMYK
  1691. <td>&nbsp;
  1692. <td>F-S
  1693. <tr valign=top> <td>&nbsp;
  1694. <td>&nbsp;
  1695. <td align=center>3
  1696. <td>&nbsp;
  1697. <td>&nbsp;
  1698. <td align=center>&nbsp;
  1699. <td>RGB
  1700. <td>&nbsp;
  1701. <td>F-S
  1702. <tr valign=top> <td>16
  1703. <td>&nbsp;
  1704. <td align=center>4
  1705. <td>&nbsp;
  1706. <td>&nbsp;
  1707. <td align=center>&nbsp;
  1708. <td>CMYK
  1709. <td>&nbsp;
  1710. <td>GS, F-S
  1711. <tr valign=top> <td>8
  1712. <td>&nbsp;
  1713. <td align=center>4
  1714. <td>&nbsp;
  1715. <td><b>*</b>
  1716. <td align=center>&nbsp;
  1717. <td>CMYK
  1718. <td>&nbsp;
  1719. <td>GS
  1720. <tr valign=top> <td>&nbsp;
  1721. <td>&nbsp;
  1722. <td align=center>3
  1723. <td>&nbsp;
  1724. <td>&nbsp;
  1725. <td align=center>&nbsp;
  1726. <td>RGB
  1727. <td>&nbsp;
  1728. <td>GS
  1729. <tr valign=top> <td>&nbsp;
  1730. <td>&nbsp;
  1731. <td align=center>1
  1732. <td>&nbsp;
  1733. <td>&nbsp;
  1734. <td align=center>&nbsp;
  1735. <td>K (CMYK)
  1736. <td>&nbsp;
  1737. <td>F-S
  1738. <tr valign=top> <td>1
  1739. <td>&nbsp;
  1740. <td align=center>1
  1741. <td>&nbsp;
  1742. <td><b>*</b>
  1743. <td align=center>&nbsp;
  1744. <td>K (CMYK)
  1745. <td>&nbsp;
  1746. <td>GS
  1747. </table></blockquote>
  1748. <p>Also note that automagical change of one parameter depending on the
  1749. other one does not work in a <b><tt>setpagedevice</tt></b> call. This
  1750. means that if you want to change <b><tt>BitsPerPixel</tt></b> to a value
  1751. whose valid <b><tt>Colors</tt></b> values do not include the actual
  1752. <b><tt>Colors</tt></b> value, you must change <b><tt>Colors</tt></b> too.
  1753. </dl>
  1754. <dl>
  1755. <dt><b><tt>Colors</tt></b> (int)
  1756. <dd>Choose the number of color components from among 1, 3 and 4 (the
  1757. default). This setting cannot be used in a PostScript program, only on
  1758. Ghostscript's command line. See <b><tt>ProcessColorModel</tt></b> below
  1759. for what to use to change the number of colors with PostScript code.
  1760. <p>
  1761. Note that setting this property does limit the choices of
  1762. <b><tt>BitsPerPixel</tt></b>. As for the previous property, its first
  1763. setting may induce a setting of the "other value"
  1764. (<b><tt>BitsPerPixel</tt></b> here). The table here indicates valid
  1765. combinations with "V", default values with asterisk "*".
  1766. <blockquote><table cellpadding=0 cellspacing=0>
  1767. <tr><th colspan=13 bgcolor="#CCCC00"><hr><font size="+1">Valid <b><tt>BitsPerPixel</tt></b> values<br>for allowed <b><tt>Colors</tt></b> values</font><hr>
  1768. <tr valign=top> <td>&nbsp;
  1769. <td>&nbsp;
  1770. <td>&nbsp;
  1771. <td>&nbsp;
  1772. <th align=left colspan=9><b><tt>BitsPerPixel</tt></b> OK values<hr>
  1773. <tr valign=top> <th>Colors
  1774. <td>&nbsp;&nbsp;
  1775. <th>Type
  1776. <td>&nbsp;&nbsp;
  1777. <td>32
  1778. <td>&nbsp;&nbsp;
  1779. <td>24
  1780. <td>&nbsp;&nbsp;
  1781. <td>16
  1782. <td>&nbsp;&nbsp;
  1783. <td>8
  1784. <td>&nbsp;&nbsp;
  1785. <td>1
  1786. <tr> <td colspan=13><hr>
  1787. <tr valign=top> <td>4
  1788. <td>&nbsp;
  1789. <td>CMYK
  1790. <td>&nbsp;
  1791. <td><b>V</b>
  1792. <td>&nbsp;
  1793. <td><b>*</b>
  1794. <td>&nbsp;
  1795. <td><b>V</b>
  1796. <td>&nbsp;
  1797. <td><b>V</b>
  1798. <td>&nbsp;
  1799. <td>&nbsp;
  1800. <tr valign=top> <td>3
  1801. <td>&nbsp;
  1802. <td>RGB
  1803. <td>&nbsp;
  1804. <td>&nbsp;
  1805. <td>&nbsp;
  1806. <td><b>*</b>
  1807. <td>&nbsp;
  1808. <td>&nbsp;
  1809. <td>&nbsp;
  1810. <td><b>V</b>
  1811. <td>&nbsp;
  1812. <td>&nbsp;
  1813. <tr valign=top> <td>1
  1814. <td>&nbsp;
  1815. <td>K
  1816. <td>&nbsp;
  1817. <td>&nbsp;
  1818. <td>&nbsp;
  1819. <td>&nbsp;
  1820. <td>&nbsp;
  1821. <td>&nbsp;
  1822. <td>&nbsp;
  1823. <td><b>V</b>
  1824. <td>&nbsp;
  1825. <td><b>*</b>
  1826. </table></blockquote>
  1827. <p>Also note that automagical change of one parameter depending on the
  1828. other one does not work in a <b><tt>setpagedevice</tt></b> call. This
  1829. means that if you want to change <b><tt>Colors</tt></b> to a value whose
  1830. valid <b><tt>BitsPerPixel</tt></b> values don't include the actual
  1831. <b><tt>BitsPerPixel</tt></b> value, you must change
  1832. <b><tt>BitsPerPixel</tt></b> too.
  1833. </dl>
  1834. <dl>
  1835. <dt><b><tt>ProcessColorModel</tt></b> (symbol)
  1836. <dd>A symbol taken from <b><tt>/DeviceGray</tt></b>,
  1837. <b><tt>/DeviceRGB</tt></b> or <b><tt>/DeviceCMYK</tt></b> which can be used
  1838. to select 1, 3 or 4 colors respectively. Note that this parameter takes
  1839. precedence over <b><tt>Colors</tt></b>, and that both affect the same
  1840. variable of the driver. (See <b><tt>Colors</tt></b> above for values
  1841. combined with <b><tt>BitsPerPixel</tt></b>.)
  1842. </dl>
  1843. <dl>
  1844. <dt><b><tt>HWResolution</tt></b> (floats array)
  1845. <dd>An array of two floats giving the horizontal and vertical resolution in
  1846. dots per inch from among 90, 180 and 360 (the default). Both values must
  1847. be the same. On the Ghostscript command line, the resolution may be
  1848. changed with the <a href="Use.htm#Resolution_switch"><b><tt>-r</tt></b>
  1849. switch</a>.
  1850. </dl>
  1851. <dl>
  1852. <dt><b><tt>ManualFeed</tt></b> (bool)
  1853. <dd>Indicate that the sheets won't be fed automatically by the printer,
  1854. <b><tt>false</tt></b> by default. (Not meaningful on the BJC-600, I fear.)
  1855. </dl>
  1856. <dl>
  1857. <dt><b><tt>MediaType</tt></b> (string)
  1858. <dd>The media to print on, chosen from among "<b><tt>PlainPaper</tt></b>",
  1859. "<b><tt>CoatedPaper</tt></b>", "<b><tt>TransparencyFilm</tt></b>",
  1860. "<b><tt>Envelope</tt></b>", "<b><tt>Card</tt></b>" and
  1861. "<b><tt>Other</tt></b>". Default is "<b><tt>PlainPaper</tt></b>". For
  1862. "<b><tt>Envelope</tt></b>", "<b><tt>Card</tt></b>" or
  1863. "<b><tt>Other</tt></b>" the driver puts the printer into thick mode
  1864. automatically regardless of the actual media weight.
  1865. </dl>
  1866. <dl>
  1867. <dt><b><tt>MediaWeight</tt></b> (int or null)
  1868. <dd>The weight of the media in grams per square meter. Null (the default)
  1869. indicates that the weight is of no importance. If the specified media
  1870. weight is greater than 105 (that is, the value of the compilation default
  1871. <b><tt>BJC</tt></b>???<b><tt>_MEDIAWEIGHT_THICKLIMIT</tt></b>) then the
  1872. printer will be set to use thick paper.
  1873. </dl>
  1874. <dl>
  1875. <dt><b><tt>PrintQuality</tt></b> (string)
  1876. <dd>The quality of printing.
  1877. <table cellpadding=0 cellspacing=0>
  1878. <tr valign=bottom>
  1879. <th align=left>Value
  1880. <td>&nbsp;&nbsp;
  1881. <th align=left><b><tt>bjc600</tt></b>
  1882. <td>&nbsp;&nbsp;
  1883. <th align=left><b><tt>bjc800</tt></b>
  1884. <td>&nbsp;&nbsp;
  1885. <th align=left>&nbsp;
  1886. <tr> <td colspan=7><hr>
  1887. <tr valign=top> <td><b><tt>Low</tt></b>
  1888. <td>&nbsp;
  1889. <td>&nbsp;
  1890. <td>&nbsp;
  1891. <td align=center><b>X</b>
  1892. <td>&nbsp;
  1893. <td>Has the effect of making only two printing passes instead of four, so should be twice the speed; known as "CN" (Color Normal) mode
  1894. <tr valign=top> <td><b><tt>Draft</tt></b>
  1895. <td>&nbsp;
  1896. <td align=center><b>X</b>
  1897. <td>&nbsp;
  1898. <td align=center><b>X</b>
  1899. <td>&nbsp;
  1900. <td>Unlights the "HQ" light on a BJC-600
  1901. <tr valign=top> <td><b><tt>Normal</tt></b>
  1902. <td>&nbsp;
  1903. <td align=center><b>X</b>
  1904. <td>&nbsp;
  1905. <td align=center><b>X</b>
  1906. <td>&nbsp;
  1907. <td>Default for both drivers; lights the "HQ" light on a BJC-600
  1908. <tr valign=top> <td><b><tt>High</tt></b>
  1909. <td>&nbsp;
  1910. <td align=center><b>X</b>
  1911. <td>&nbsp;
  1912. <td align=center><b>X</b>
  1913. <td>&nbsp;
  1914. <td>Means 200% black and 100% CMY; lights the "Bk+" light on a BJC-600
  1915. </table>
  1916. </dl>
  1917. <dl>
  1918. <dt><b><tt>DitheringType</tt></b> (string)
  1919. <dd>Dithering algorithm from between "<b><tt>Floyd-Steinberg</tt></b>" and
  1920. "<b><tt>None</tt></b>". "<b><tt>None</tt></b>" is the default for 1/1 print
  1921. mode, "<b><tt>Floyd-Steinberg</tt></b>" for other modes. At the moment
  1922. this parameter is read-only, though no error is generated if one tries to
  1923. change it. This parameter is not of much value at the moment and is here
  1924. mainly to reserve the name for future addition of dithering algorithms.
  1925. </dl>
  1926. <dl>
  1927. <dt><b><tt>PrintColors</tt></b> (int)
  1928. <dd>Mask for printing color. If 0, use black for any color; otherwise the
  1929. value must be the sum of any of 1 (cyan), 2 (magenta), 4 (yellow) and 8
  1930. (black), indicating which colors will be used for printing. When printing
  1931. colour, only colours specified will be printed (this means that some planes
  1932. will be missing if a color's value above is omitted). When printing grays,
  1933. black is used if it is present in the <b><tt>PrintColors</tt></b>;
  1934. otherwise, the image is printed by superimposing each requested color.
  1935. </dl>
  1936. <dl>
  1937. <dt><b><tt>MonochromePrint</tt></b> (bool)
  1938. <dd><b>For <tt>bjc600</tt> only</b>, <b><tt>false</tt></b> by default.
  1939. Substitute black for Cyan, Magenta and Yellow when printing -- useful, for
  1940. example, to get some monochrome output of a dithered printing This is a
  1941. hardware mechanism as opposed to the previous software one. I think that
  1942. using this or setting <b><tt>PrintColors</tt></b> to 0 will give the same
  1943. results.
  1944. </dl>
  1945. <p>
  1946. Note that the <b><tt>MediaType</tt></b> and <b><tt>ThickMedia</tt></b>
  1947. options will be replaced by the use of the device
  1948. <b><tt>InputAttributes</tt></b> and <b><tt>OutputAttributes</tt></b> as
  1949. soon as possible. Please note too that the print mode may be reset at the
  1950. start of printing, not at the end. This is the expected behaviour. If you
  1951. need to reset the printer to its default state, simply print a file that
  1952. does just a <b><tt>showpage</tt></b>.
  1953. <h4><a name="BJC_device_info"></a>Device information</h4>
  1954. <p>
  1955. Here is other information published by the driver that you will find
  1956. in the <b><tt>deviceinfo</tt></b> dictionary.
  1957. <dl>
  1958. <dt><b><tt>OutputFaceUp</tt></b> (bool)
  1959. <dd>This has the boolean value <b><tt>true</tt></b>, indicating that the
  1960. sheets are stacked face up.
  1961. </dl>
  1962. <dl>
  1963. <dt><b><tt>Version</tt></b> (float)
  1964. <dd>In the form <b>M.</b><em>mm</em>pp, where <b>M</b> is the major
  1965. version, <em>mm</em> the bjc driver's minor version, and pp the specific
  1966. driver minor version (that is, <b><tt>M.</tt></b><em>mm</em> will always be
  1967. the same for the <b><tt>bjc600</tt></b> and <b><tt>bjc800</tt></b>
  1968. drivers).
  1969. </dl>
  1970. <dl>
  1971. <dt><b><tt>VersionString</tt></b> (string)
  1972. <dd> A string showing the driver version and other indications. At the
  1973. moment, things like "a" or "b" may follow the version to indicate alpha or
  1974. beta versions. The date of the last change to this version is given in the
  1975. form MM/DD/YY (no, it won't adapt to your locale).
  1976. </dl>
  1977. <h4><a name="BJC_HW_margins"></a>Hardware margins</h4>
  1978. <p>
  1979. The BJC printers have top and bottom hardware margins of 3mm and 7.1mm
  1980. respectively (Canon says 7mm, but this is unusable because of the rounding
  1981. of paper sizes to PostScript points). The left margin is 3.4mm for A4 and
  1982. smaller paper sizes, 6.4mm for U.S. paper sizes, envelopes and cards. It
  1983. is 4.0mm for A3 paper on the BJC-800.
  1984. <p>
  1985. The maximum printing width of a BJC-600 printer is 203mm. The maximum
  1986. printing width of a BJC-800 printer is 289mm on A3 paper, 203mm on
  1987. U.S. letter and ISO A4 paper.
  1988. <h4><a name="BJC_PPD"></a>PostScript printer description (PPD) files</h4>
  1989. <p>
  1990. The files <b><tt>CBJC600.PPD</tt></b> and <b><tt>CBJC800.PPD</tt></b> (whose
  1991. long names are, respectively, <b><tt>Canon_BubbleJetColor_600.ppd</tt></b>
  1992. and <b><tt>Canon_BubbleJetColor_800.ppd</tt></b>) are PPD files to drive the
  1993. features of the <b><tt>bjc600</tt></b> and <b><tt>bjc800</tt></b> drivers.
  1994. They can be used, for example, on NextStep systems (presumably on OpenStep
  1995. systems too) and on Unix systems with Adobe's TranScript and
  1996. <b><tt>pslpr</tt></b> (not tested). The files are not complete at the
  1997. moment. Please note that NextStep's printing interface does not
  1998. correctly enforce constraints specified in these files (in UIConstraints
  1999. descriptions): you must force yourself to use valid combinations of
  2000. options.
  2001. <h4><a name="BJC_PPD_custom"></a>Customizing the PPD files</h4>
  2002. <p>
  2003. By default the PPD files are set for U.S. letter size paper, and they use a
  2004. normalized transfer function. If you choose to use A4 printing by default,
  2005. you must replace "<b><tt>Letter</tt></b>" with "<b><tt>A4</tt></b>" in
  2006. these (noncontiguous) lines:
  2007. <blockquote>
  2008. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...]<br>
  2009. <b><tt>*DefaultPageSize: Letter<br></tt></b>
  2010. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...]<br>
  2011. <b><tt>*DefaultRegion: Letter<br></tt></b>
  2012. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...]<br>
  2013. <b><tt>*DefaultImageableArea: Letter</tt></b><br>
  2014. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[...]<br>
  2015. </blockquote>
  2016. <p>
  2017. Some versions of Ghostscript have problems with normalized colors, which
  2018. makes them add magenta in gray levels. If you experience this problem,
  2019. in the PPD file replace the line
  2020. <blockquote><b><tt>
  2021. *DefaultTransfer: Normalized
  2022. </tt></b></blockquote>
  2023. <p>
  2024. with the alternate line
  2025. <blockquote><b><tt>
  2026. *DefaultTransfer: Null
  2027. </tt></b></blockquote>
  2028. <p>
  2029. The "thick media" option is implemented by choosing a value of 120 or 80
  2030. (for thick and thin media respectively) for the <b><tt>MediaWeight</tt></b>
  2031. feature of the drivers. If you ever change the threshold for thick media
  2032. in the driver code, you may need to change the values in the PPD files too.
  2033. <p>
  2034. All customization should be done using the "<b><tt>*Include:</tt></b>"
  2035. feature of PPD files so that your local changes will be retained if you
  2036. update the PPD files.
  2037. <h3><a name="BJC_bugs"></a>How to report problems</h3>
  2038. <p>
  2039. Yves Arrouye no longer maintains this driver, and will not answer questions
  2040. about it. If you are posting a question about it in a public form, please
  2041. be as descriptive as possible, and please send information that can be used
  2042. to reproduce the problem. Don't forget to say which driver you use, and in
  2043. what version. Version information can be found in the source code of the
  2044. driver or by issuing the following command in a shell:
  2045. <blockquote><b><tt>
  2046. echo&nbsp;"currentpagedevice&nbsp;/VersionString&nbsp;get&nbsp;=="&nbsp;|&nbsp;gs&nbsp;-q&nbsp;-sDEVICE=bjc600&nbsp;-
  2047. </tt></b></blockquote>
  2048. <h3><a name="BJC_acks"></a>Acknowledgements</h3>
  2049. <p>
  2050. I am particularly grateful to Yoshio Kuniyoshi &lt;<a
  2051. href="mailto:yoshio@nak.math.keio.ac.jp">yoshio@nak.math.keio.ac.jp</a>&gt;
  2052. without whom I'd never make these drivers, and also to L. Peter Deutsch,
  2053. who answered all my (often silly) questions about Ghostscript's driver
  2054. interface.
  2055. <p>
  2056. Thanks also to the people who volunteered to beta-test the v2.x BJC
  2057. drivers: David Gaudine
  2058. &lt;<a href="mailto:david@donald.concordia.ca">david@donald.concordia.ca</a>&gt;,
  2059. Robert M. Kenney &lt;<a href="mailto:rmk@unh.edu">rmk@unh.edu</a>&gt;,
  2060. James McPherson
  2061. &lt;<a href="mailto:someone@erols.com">someone@erols.com</a>&gt;
  2062. and Ian Thurlbeck
  2063. &lt;<a href="mailto:ian@stams.strath.ac.uk">ian@stams.strath.ac.uk</a>&gt;
  2064. (listed alphabetically) were particularly helpful by discovering bugs and
  2065. helping find out exact paper margins on printers I don't have access to.
  2066. <p>
  2067. And many thanks to Klaus-Gunther Hess
  2068. &lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt; for looking
  2069. at the dithering code and devising a good CMYK dithering algorithm for the
  2070. Epson Stylus Color, which I then adapted to the code of these drivers.
  2071. <hr>
  2072. <h2><a name="STC_epson_stylus"></a>Epson Stylus color printer (see also <b><tt>uniprint</tt></b>)</h2>
  2073. <p>
  2074. This section was contributed by Gunther Hess
  2075. &lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt;, who also wrote
  2076. <b><tt>uniprint</tt></b>, a later set of drivers. You should probably see
  2077. the section on <a href="#Uniprint"><b><tt>uniprint</tt></b></a> for whether
  2078. it might be better for your uses than this driver.
  2079. <h3><a name="STC_usage"></a>Usage</h3>
  2080. <p>
  2081. This driver is selected with "<b><tt>-sDEVICE=stcolor</tt></b>", producing
  2082. output for an Epson Stylus Color at 360dpi resolution by default. But it
  2083. can do much more with this printer, and with significantly better quality,
  2084. than with the default mode; and it can also produce code for monochrome
  2085. versions of the printer. This can be achieved via either command-line
  2086. options or Ghostscript input. For convenience a PostScript file is
  2087. supplied for use as an initial input file. Try the following command:
  2088. <blockquote>
  2089. <b><tt>gs -sDEVICE=stcolor -r</tt></b><b>{Xdpi}</b><b><tt>x</tt></b><b>{Ydpi}</b><b><tt> stcolor.ps</tt></b> <b>{YourFile.ps}</b>
  2090. </blockquote>
  2091. <p>
  2092. where <b>{Xdpi}</b> is one of 180, 360, or 720 and <b>{Ydpi}</b> is one of
  2093. 90, 180, 360, or 720. The result should be significantly better. You may
  2094. use <b><tt>stcolor.ps</tt></b> with other devices too, but I do not
  2095. recommend this, since it does nothing then. <b><tt>stcolor.ps</tt></b>
  2096. should be available with binary distributions and should reside in the same
  2097. directory as other Ghostscript initialization files or in the same
  2098. directory as the files to be printed. Thus if Ghostscript is part of your
  2099. printer-spooler, you can insert
  2100. <blockquote><b><tt>
  2101. (stcolor.ps) findlibfile { pop run } if pop
  2102. </tt></b></blockquote>
  2103. <p>
  2104. in files you want to use the improved algorithms. You may want to adapt
  2105. <b><tt>stcolor.ps</tt></b> file to your specific needs. The methods and
  2106. options for this are described here, but this description is restricted to
  2107. Ghostscript options, while their manipulation at the PostScript level is
  2108. documented in the material on <a href="Language.htm">the relationship of
  2109. Ghostscript and PostScript</a> and in <b><tt>stcolor.ps</tt></b>.
  2110. <h3><a name="STC_options"></a>Options</h3>
  2111. <p>
  2112. Now to explain the options (as written on my UNIX system). The order is
  2113. somehow related to their use during the printing process:
  2114. <dl>
  2115. <dt><b><tt>-dUnidirectional</tt></b>
  2116. <dd>Force unidirectional printing, recommended for transparencies
  2117. </dl>
  2118. <dl>
  2119. <dt><b><tt>-dMicroweave</tt></b>
  2120. <dd>Enable the printer's "microweave" feature; see
  2121. "<a href="#What_is_weaving">What is weaving?</a>" below.
  2122. </dl>
  2123. <dl>
  2124. <dt><b><tt>-dnoWeave</tt></b>
  2125. <dd>Disable any Weaving (overrides <b><tt>-dMicroweave</tt></b>)
  2126. </dl>
  2127. <dl>
  2128. <dt><b><tt>-dSoftweave</tt></b>
  2129. <dd>Enable the driver's internal weaving. Note that <b><tt>Softweave</tt></b> works <b>only</b> with the original Stylus Color and the PRO-Series.
  2130. </dl>
  2131. <dl>
  2132. <dt><b><tt>-sDithering=</tt></b><em>{name}</em>
  2133. <dd>Select another dithering algorithm (name) from among
  2134. <blockquote><table cellpadding=0 cellspacing=0>
  2135. <tr valign=top> <td><b><tt>gscmyk</tt></b>
  2136. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2137. <td>fast color output, CMYK process color model (default)
  2138. <tr valign=top> <td><b><tt>gsmono</tt></b>
  2139. <td>&nbsp;
  2140. <td>fast monochrome output
  2141. <tr valign=top> <td><b><tt>gsrgb</tt></b>
  2142. <td>&nbsp;
  2143. <td>fast color output, RGB process color model
  2144. <tr valign=top> <td><b><tt>fsmono</tt></b>
  2145. <td>&nbsp;
  2146. <td>Floyd-Steinberg, monochrome
  2147. <tr valign=top> <td><b><tt>fsrgb</tt></b>
  2148. <td>&nbsp;
  2149. <td>Floyd-Steinberg, RGB process color model (almost identical to the <b><tt>cdj550</tt></b>/<b><tt>bjc</tt></b> algorithm)
  2150. <tr valign=top> <td><b><tt>fsx4</tt></b>
  2151. <td>&nbsp;
  2152. <td>Floyd-Steinberg, CMYK process color model (shares code with <b><tt>fsmono</tt></b> and <b><tt>fsrgb</tt></b>, but is algorithmically really bad)
  2153. <tr valign=top> <td><b><tt>fscmyk</tt></b>
  2154. <td>&nbsp;
  2155. <td>Floyd-Steinberg, CMYK process color model and proper modifications for CMYK
  2156. <tr valign=top> <td><b><tt>hscmyk</tt></b>
  2157. <td>&nbsp;
  2158. <td>modified Floyd-Steinberg with CMYK model ("hs" stands for "hess" not for "high speed", but the major difference from <b><tt>fscmyk</tt></b> is speed)
  2159. <tr valign=top> <td><b><tt>fs2</tt></b>
  2160. <td>&nbsp;
  2161. <td>algorithm by Steven Singer (RGB) should be identical to <b><tt>escp2cfs2</tt></b>.
  2162. </table></blockquote>
  2163. </dl>
  2164. <dl>
  2165. <dt><b><tt>-dBitsPerPixel=</tt></b><em>{1...32}</em>
  2166. <dd>number of bits used for pixel storage; the larger the value, the better
  2167. the quality -- at least in theory. In <b><tt>fsrgb</tt></b> one can gain
  2168. some speed by restricting to 24 bits rather than the default 30.
  2169. </dl>
  2170. <dl>
  2171. <dt><b><tt>-dFlag0</tt></b>
  2172. <dd>causes some algorithms to select a uniform initialisation rather than a
  2173. set of random values. May yield a sharper image impression at the cost of
  2174. dithering artifacts. (Applies to <b><tt>hscmyk</tt></b> and all fs modes,
  2175. except for fs2, which always uses a constant initialization.)
  2176. </dl>
  2177. <dl>
  2178. <dt><b><tt>-dFlag1</tt></b> ... <b><tt>-dFlag4</tt></b>
  2179. <dd>Available for future algorithms.
  2180. </dl>
  2181. <dl>
  2182. <dt><b><tt>-dColorAdjustMatrix='{</tt></b><em>three, nine, or sixteen
  2183. floating-point values</em><b><tt>}'</tt></b>
  2184. <dd>This is a matrix to adjust the colors. Values should be between -1.0
  2185. and 1.0, and the number of values depends on the color model the selected
  2186. algorithm uses. In RGB and CMYK modes a matrix with 1.0 on the diagonal
  2187. produces no transformation. This feature is really required, but I could
  2188. not identify a similar feature at the language level, so I implemented it,
  2189. but I don't know reasonable values yet.
  2190. </dl>
  2191. <dl>
  2192. <dt><b><tt>-dCtransfer='{</tt></b><em>float float ...</em><b><tt>}'</tt></b> or
  2193. <dt><b><tt>-dMtransfer=</tt></b>..., <b><tt>-dY</tt></b>..., <b><tt>-dK</tt></b>... or
  2194. <dt><b><tt>-dRtransfer='{</tt></b><em>float float ...</em><b><tt>}'</tt></b> or
  2195. <dt><b><tt>-dG</tt></b>..., <b><tt>-dB</tt></b>... or
  2196. <dt><b><tt>-dKtransfer='{</tt></b><em>float float ...</em><b><tt>}'</tt></b>
  2197. <dd>Which you use depends on the algorithm, which may be either either
  2198. CMYK, RGB or monochrome. The values are arrays of floats in the range from
  2199. 0 to 1.0, representing the visible color intensity for the device. One may
  2200. achieve similar effects with <b><tt>setcolortransfer</tt></b> at the
  2201. language level, but this takes more time and the underlying code for the
  2202. driver-specific parameters is still required. The size of the arrays is
  2203. arbitrary and the defaults are "<b><tt>{0.0&nbsp;1.0}</tt></b>", which is a
  2204. linear characteristic. Most of the code in <b><tt>stcolor.ps</tt></b> are
  2205. better transfer arrays.
  2206. </dl>
  2207. <dl>
  2208. <dt><b><tt>-dKcoding='{</tt></b><em>float...</em><b><tt>}'</tt></b>
  2209. <dt><b><tt>-dC</tt></b>..., <b><tt>-dM</tt></b>... etc.
  2210. <dd>Arrays between 0.0 and 1.0, controlling the internal coding of the
  2211. color values. Clever use of these arrays may yield further enhancements,
  2212. but I have no experience yet. (To be discontinued with version 2.x.)
  2213. </dl>
  2214. <dl>
  2215. <dt><b><tt>-sModel=st800</tt></b>
  2216. <dd>Causes output to be suitable for the monochrome Stylus 800 (no weaving,
  2217. no color).
  2218. </dl>
  2219. <dl>
  2220. <dt><b><tt>-sOutputCode=</tt></b><em>{name}</em>
  2221. <dd>Can be either "<b><tt>plain</tt></b>", "<b><tt>runlength</tt></b>" or
  2222. "<b><tt>deltarow</tt></b>" and changes the ESC/P2 coding technique
  2223. used by the driver. The default is to use runlength encoding.
  2224. "<b><tt>plain</tt></b>" selects uncompressed encoding and generates
  2225. enormous amounts of data.
  2226. </dl>
  2227. <dl>
  2228. <dt><b><tt>-descp_Band=</tt></b><em>1/8/15/24</em>
  2229. <dd>Number of nozzles of scanlines used in printing, Useful only with
  2230. <b><tt>-dnoWeave</tt></b>. Larger Values yield smaller code, but this
  2231. doesn't increase the printing speed.
  2232. </dl>
  2233. <dl>
  2234. <dt><b><tt>-descp_Width=</tt></b><em>N</em>
  2235. <dd>Number of pixels Printed in each scan Line. (Useful only when tuning
  2236. margins; see below)
  2237. </dl>
  2238. <dl>
  2239. <dt><b><tt>-descp_Height=</tt></b><em>pixels</em>
  2240. <dd>Length of the entire page in pixels. (Parameter of
  2241. "<b><tt>ESC(C</tt></b>" in default initialization.)
  2242. </dl>
  2243. <dl>
  2244. <dt><b><tt>-descp_Top=</tt></b><em>scan lines</em>
  2245. <dd>Top margin in scan lines. (First parameter of "<b><tt>ESC(c</tt></b>"
  2246. in default initialization.)
  2247. </dl>
  2248. <dl>
  2249. <dt><b><tt>-descp_Bottom=</tt></b><em>scan lines</em>
  2250. <dd>Bottom margin in scan lines. (Second parameter of
  2251. "<b><tt>ESC(c</tt></b>" in default initialization.)
  2252. </dl>
  2253. <dl>
  2254. <dt><b><tt>-sescp_Init=</tt></b>"<em>string</em>"
  2255. <dd>Override for the initialization sequence. (Must set graphics mode 1
  2256. and units.)
  2257. </dl>
  2258. <dl>
  2259. <dt><b><tt>-sescp_Release=</tt></b>"<em>string</em>"
  2260. <dd>Overrides the release sequence, "<b><tt>ESC&nbsp;@&nbsp;FF</tt></b>" by
  2261. default.
  2262. </dl>
  2263. <p>
  2264. ESC/P2 allows any resolutions to be valid in theory, but only
  2265. <b><tt>-r360x360</tt></b> (the default) and <b><tt>-r720x720</tt></b> (not
  2266. on STC-IIs ? and st800) are known to work with most printers.
  2267. <p>
  2268. <blockquote><table cellpadding=0 cellspacing=0>
  2269. <tr><th colspan=7 bgcolor="#CCCC00"><hr><font size="+1">Valid option combinations<br>Stylus I &amp; Pro-Series only</font><hr>
  2270. <tr valign=bottom>
  2271. <th valign=bottom align=left>Resolution
  2272. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2273. <th valign=bottom align=left><b><tt>escp_Band</tt></b>
  2274. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2275. <th valign=bottom align=left>Weave usable
  2276. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2277. <th valign=bottom align=left><b><tt>escp_Band</tt></b> &amp;<br>number of passes
  2278. <tr> <td colspan=7><hr>
  2279. <tr valign=top> <td>180x90
  2280. <td>&nbsp;
  2281. <td>15
  2282. <td>&nbsp;
  2283. <td><b><tt>noWeave</tt></b>
  2284. <td>&nbsp;
  2285. <td>&nbsp;
  2286. <tr valign=top> <td>180x180
  2287. <td>&nbsp;
  2288. <td>1 , 8, 24
  2289. <td>&nbsp;
  2290. <td><b><tt>noWeave</tt></b>, <b><tt>Microweave</tt></b>
  2291. <td>&nbsp;
  2292. <td>15/2 <b><tt>SoftWeave</tt></b>
  2293. <tr valign=top> <td>180x360
  2294. <td>&nbsp;
  2295. <td>&nbsp;
  2296. <td>&nbsp;
  2297. <td>&nbsp;
  2298. <td>&nbsp;
  2299. <td>15/4 <b><tt>SoftWeave</tt></b>
  2300. <tr valign=top> <td>180x720
  2301. <td>&nbsp;
  2302. <td>&nbsp;
  2303. <td>&nbsp;
  2304. <td>&nbsp;
  2305. <td>&nbsp;
  2306. <td>15/8 <b><tt>SoftWeave</tt></b>
  2307. <tr valign=top> <td>360x90
  2308. <td>&nbsp;
  2309. <td>15
  2310. <td>&nbsp;
  2311. <td><b><tt>noWeave</tt></b>
  2312. <td>&nbsp;
  2313. <td>&nbsp;
  2314. <tr valign=top> <td>360x180
  2315. <td>&nbsp;
  2316. <td>1, 8, 24
  2317. <td>&nbsp;
  2318. <td><b><tt>noWeave</tt></b>, <b><tt>Microweave</tt></b>
  2319. <td>&nbsp;
  2320. <td>15/2 <b><tt>SoftWeave</tt></b>
  2321. <tr valign=top> <td>360x360
  2322. <td>&nbsp;
  2323. <td>1, 8, 24
  2324. <td>&nbsp;
  2325. <td><b><tt>noWeave</tt></b>, <b><tt>Microweave</tt></b>
  2326. <td>&nbsp;
  2327. <td>15/4 <b><tt>SoftWeave</tt></b>
  2328. <tr valign=top> <td>360x720
  2329. <td>&nbsp;
  2330. <td>&nbsp;
  2331. <td>&nbsp;
  2332. <td>&nbsp;
  2333. <td>&nbsp;
  2334. <td>15/8 <b><tt>SoftWeave</tt></b>
  2335. <tr valign=top> <td>720x90
  2336. <td>&nbsp;
  2337. <td>15
  2338. <td>&nbsp;
  2339. <td><b><tt>noWeave</tt></b>
  2340. <td>&nbsp;
  2341. <td>&nbsp;
  2342. <tr valign=top> <td>720x180
  2343. <td>&nbsp;
  2344. <td>&nbsp;
  2345. <td>&nbsp;
  2346. <td>&nbsp;
  2347. <td>&nbsp;
  2348. <td>15/2 <b><tt>SoftWeave</tt></b>
  2349. <tr valign=top> <td>720x360
  2350. <td>&nbsp;
  2351. <td>&nbsp;
  2352. <td>&nbsp;
  2353. <td>&nbsp;
  2354. <td>&nbsp;
  2355. <td>15/4 <b><tt>SoftWeave</tt></b>
  2356. <tr valign=top> <td>720x720
  2357. <td>&nbsp;
  2358. <td>1
  2359. <td>&nbsp;
  2360. <td><b><tt>noWeave</tt></b>, <b><tt>Microweave</tt></b>
  2361. <td>&nbsp;
  2362. <td>15/8 <b><tt>SoftWeave</tt></b>
  2363. </table></blockquote>
  2364. <blockquote>
  2365. <b>Beware:</b> there are only few validity checks for parameters. A good
  2366. example is <b><tt>escp_Band</tt></b>: if you set this, the driver uses your
  2367. value even if the value is not supported by the printer. <b>You asked for
  2368. it and you got it!</b>
  2369. </blockquote>
  2370. <h3><a name="STC_FAQ"></a>Application note and FAQ</h3>
  2371. <p>
  2372. Quite a bunch of parameters. Hopefully you never need any of them, besides
  2373. feeding <b><tt>stcolor.ps</tt></b> to Ghostscript in front of your input.
  2374. <p>
  2375. After answering some questions over fifty times I prepared a FAQ. Here is
  2376. version 1.3 of the FAQ, as of <b><tt>stcolor</tt></b> version 1.20 (for
  2377. Ghostscript 3.50).
  2378. <h4><a name="STC_FAQ_A3"></a>Support for A3 paper</h4>
  2379. <p>
  2380. Yes, this driver supports the A3-size printer: merely set the required
  2381. pagesize and margins. A simple way to do this is to specify the
  2382. command-line switch "<b><tt>-sPAPERSIZE=a3</tt></b>" or include the
  2383. procedure call "<b><tt>a3</tt></b>" in the PostScript prolog section. To
  2384. optimize the printable area or set the proper margins, see the next
  2385. paragraph.
  2386. <h4><a name="STC_FAQ_margins"></a>Margins, PageSize</h4>
  2387. <p>
  2388. I refuse to add code to <b><tt>stcolor</tt></b> that tries to guess the
  2389. proper margins or page size, because I found that such guessing is usually
  2390. wrong and needs correction in either the source or the parameters. You can
  2391. modify <b><tt>stcolor.ps</tt></b> to do that, however. After the line
  2392. <blockquote><b><tt>
  2393. mark % prepare stack for "putdeviceprops"
  2394. </tt></b></blockquote>
  2395. <p>
  2396. insert these lines, which define page size and margins in points:
  2397. <blockquote>
  2398. <pre>/.HWMargins [9.0 39.96 12.6 9.0] % Left, bottom, right, top (1/72")
  2399. /PageSize [597.6 842.4] % Paper, including margins (1/72")
  2400. /Margins [ % neg. Offset to Left/Top in Pixels
  2401. 4 index 0 get STCold /HWResolution get 0 get mul 72 div neg
  2402. 5 index 3 get STCold /HWResolution get 1 get mul 72 div neg
  2403. ]</pre></blockquote>
  2404. <p>
  2405. Feel free to change the values of <b><tt>.HWMargins</tt></b> and
  2406. <b><tt>PageSize</tt></b> to match your needs; the values given are the
  2407. defaults when the driver is compiled with "<b><tt>-DA4</tt></b>". This
  2408. option or its omission may cause trouble: the Stylus Color can print up to
  2409. exactly 8 inches (2880 pixels) at 360dpi. The remaining paper is the
  2410. margin, where the left margin varies only slightly with the paper size,
  2411. while the right margin is significantly increased for wider paper, such as
  2412. U.S. letter size.
  2413. <p>
  2414. <b>Note</b> that if you are using an ISO paper size with a version of
  2415. <b><tt>stcolor</tt></b> after 1.20 and compiled without
  2416. "<b><tt>-DA4</tt></b>", then the default margin is too large, and you need
  2417. to add the proper "<b><tt>.HWMargins</tt></b>" to the command line or to
  2418. <b><tt>stcolor.ps</tt></b>.
  2419. <h4><a name="STC_FAQ_II_IIS_1500"></a>Stylus Color II / IIs and 1500</h4>
  2420. <p>
  2421. First the good news: the driver can print on the Stylus Color II.
  2422. Now the bad news:
  2423. <ul>
  2424. <li>According to Epson support the driver "abuses" the color
  2425. capabilities. (See "Future Plans" for details.)
  2426. <li>You need some parameters on the command line (or in
  2427. <b><tt>stcolor.ps</tt></b>).
  2428. <li>I doubted that it would be usable with the Stylus Color IIs, but
  2429. it <b>is</b> usable and suffers from mixing problems!
  2430. </ul>
  2431. <p>
  2432. To make things work, you <b>MUST</b> disable the driver's internal
  2433. weaving (<b><tt>Softweave</tt></b>), in one of these two ways:
  2434. <blockquote>
  2435. <b><tt>gs -dMicroweave</tt></b> ...<br>
  2436. <b><tt>gs -dnoWeave -descp_Band=1</tt></b> ...
  2437. </blockquote>
  2438. <p>
  2439. Version 1.90, current as of Ghostscript 5.10, fixes this bug by new default
  2440. behaviour. I experienced significantly increased printing speed with the
  2441. second variant on the old Stylus Color, when printing mostly monochrome
  2442. data.
  2443. <h3><a name="STC_recommendations"></a>Recommendations</h3>
  2444. <p>
  2445. The next section is a contribution from Jason Patterson &lt;jason@reflections.com.au&gt;
  2446. who evaluated a previous version (1.17). Ghostscript was invoked as follows:
  2447. <blockquote><dl compact>
  2448. <dt><b><tt>gs</tt></b>
  2449. <dd><b><tt>-sDEVICE=stcolor -r720x720
  2450. -sDithering=</tt></b>... <b><tt>-sOutputFile=escp.out stcolor.ps
  2451. whatsoever.ps</tt></b>
  2452. </dl></blockquote>
  2453. <p>
  2454. where "..." is the name of the desired algorithm.
  2455. <b><tt>stcolor.ps</tt></b> was omitted for the gs-algorithms
  2456. (<b><tt>gsmono</tt></b>, <b><tt>gsrgb</tt></b> and <b><tt>gscmyk</tt></b>),
  2457. for which it is useless and would not allow the selection of
  2458. "<b><tt>gscmyk</tt></b>".
  2459. <h4><a name="STC_dither_experiment"></a>Color dithering experiments with
  2460. <b><tt>gdevstc</tt></b> 1.21</h4>
  2461. <p>
  2462. Here are data about the EPSON Stylus Color driver's different dithering
  2463. methods, based on a little experiment using four good quality scanned
  2464. images of quite varied nature, to begin with, a summary of the results of
  2465. the four experiments. <b>Sanity note:</b> the results here are from only
  2466. four images and a total of 24 printouts (eight on 720dpi paper, sixteen on
  2467. plain paper). Your results will almost certainly vary, and your standards
  2468. might not be the same as mine, so use these results only as a guide, not as
  2469. a formal evaluation.
  2470. <blockquote><table cellpadding=0 cellspacing=0>
  2471. <tr><th colspan=3 bgcolor="#CCCC00"><hr><font size="+1">Quality of output by method</font><hr>
  2472. <tr valign=bottom>
  2473. <th align=left>
  2474. <td>&nbsp;&nbsp;
  2475. <th align=left>
  2476. <tr> <td colspan=3><hr>
  2477. <tr> <td valign=top><b><tt>gsmono</tt></b>
  2478. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2479. <td>Pretty much what you'd expect from a mono ordered pattern.
  2480. Looks like what a lot of mono laser printers produce.
  2481. <tr> <td valign=top><b><tt>fsmono</tt></b>
  2482. <td>&nbsp;
  2483. <td>Excellent for monochrome.
  2484. <tr> <td valign=top><b><tt>gscmyk</tt></b>
  2485. <td>&nbsp;
  2486. <td>Not very good, but expected from an ordered pattern.
  2487. <tr> <td valign=top><b><tt>gsrgb</tt></b>
  2488. <td>&nbsp;
  2489. <td>A little better than <b><tt>gscmyk</tt></b>. More consistent
  2490. looking.
  2491. <tr> <td valign=top><b><tt>fs2</tt></b>
  2492. <td>&nbsp;
  2493. <td>Good, but not quite as good as <b><tt>fsrgb</tt></b>. Gets the
  2494. brightness wrong: too light at 720dpi, too dark at 360dpi.
  2495. <tr> <td valign=top><b><tt>fsrgb</tt></b>
  2496. <td>&nbsp;
  2497. <td>Very good, but a little too dark and has a slight blue tint.
  2498. <tr> <td valign=top><b><tt>hscmyk</tt></b>
  2499. <td>&nbsp;
  2500. <td>Excellent. Slightly better than <b><tt>fsrgb</tt></b> and
  2501. <b><tt>fs2</tt></b>. Better than <b><tt>fscmyk</tt></b> on
  2502. some images, almost the same on most.
  2503. <tr> <td valign=top><b><tt>fscmyk</tt></b>
  2504. <td>&nbsp;
  2505. <td>Best. Very, very slightly better than <b><tt>hscmyk</tt></b>.
  2506. On some images nearly as good as the EPSON demos done with
  2507. the MS Windows driver.
  2508. </table></blockquote>
  2509. <blockquote><table cellpadding=0 cellspacing=0>
  2510. <tr><th colspan=4 bgcolor="#CCCC00"><hr><font size="+1">Overall visual quality (1-10), best to worst</font><hr>
  2511. <tr valign=top> <th colspan=4 align=left>Monochrome
  2512. <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp;
  2513. <td><b><tt>fsmono</tt></b>
  2514. <td>&nbsp;&nbsp;
  2515. <td><b><tt>******************</tt></b>
  2516. <tr> <td>&nbsp;
  2517. <td><b><tt>gsmono</tt></b>
  2518. <td>&nbsp;
  2519. <td><b><tt>**********</tt></b>
  2520. <tr> <td>&nbsp;
  2521. <td>&nbsp;
  2522. <td>&nbsp;
  2523. <td><b><tt>0&nbsp;1&nbsp;2&nbsp;3&nbsp;4&nbsp;5&nbsp;6&nbsp;7&nbsp;8&nbsp;9&nbsp;10</tt></b>
  2524. <tr> <td colspan=4><hr>
  2525. <tr valign=top> <th colspan=4 align=left>Colour
  2526. <tr> <td>&nbsp;
  2527. <td><b><tt>fscmyk</tt></b>
  2528. <td>&nbsp;
  2529. <td><b><tt>*******************</tt></b>
  2530. <tr> <td>&nbsp;
  2531. <td><b><tt>hscmyk</tt></b>
  2532. <td>&nbsp;
  2533. <td><b><tt>*******************</tt></b>
  2534. <tr> <td>&nbsp;
  2535. <td><b><tt>fsrgb</tt></b>
  2536. <td>&nbsp;
  2537. <td><b><tt>******************</tt></b>
  2538. <tr> <td>&nbsp;
  2539. <td><b><tt>fs2</tt></b>
  2540. <td>&nbsp;
  2541. <td><b><tt>*****************</tt></b>
  2542. <tr> <td>&nbsp;
  2543. <td><b><tt>gsrgb</tt></b>
  2544. <td>&nbsp;
  2545. <td><b><tt>**********</tt></b>
  2546. <tr> <td>&nbsp;
  2547. <td><b><tt>gscmyk</tt></b>
  2548. <td>&nbsp;
  2549. <td><b><tt>*********</tt></b>
  2550. <tr> <td>&nbsp;
  2551. <td>&nbsp;
  2552. <td>&nbsp;
  2553. <td><b><tt>0&nbsp;1&nbsp;2&nbsp;3&nbsp;4&nbsp;5&nbsp;6&nbsp;7&nbsp;8&nbsp;9&nbsp;10</tt></b>
  2554. </table></blockquote>
  2555. <h3><a name="STC_color_transform"></a>Color transformation</h3>
  2556. <p>
  2557. In the initial version of the driver distributed with Ghostscript 3.33, the
  2558. parameter "<b><tt>SpotSize</tt></b>" was the only way to manipulate the
  2559. colors at the driver level. According to the parameters enumerated above,
  2560. this has changed significantly with version 1.16 and above as a result an
  2561. ongoing discussion about dithering algorithms and "false color" on the
  2562. Epson Stylus Color. This initiated the transformation of the
  2563. <b><tt>stcolor</tt></b> driver into a framework for different dithering
  2564. algorithms, providing a generalized interface to the internal Ghostscript
  2565. color models and the other data structures related to Ghostscript drivers.
  2566. <p>
  2567. The main thing such a framework should be able to do is to deliver the
  2568. values the dithering algorithm needs; and since this directly influences
  2569. the optical image impression, this transformation should be adjustable
  2570. without the need for recompilation and relinking. In general the process
  2571. can be described as follows:
  2572. <blockquote><table cellpadding=0 cellspacing=0>
  2573. <tr valign=top> <td colspan=3><b><tt>ColorAdjustMatrix</tt></b>
  2574. <td align=center>Coding
  2575. <td colspan=3>&nbsp;
  2576. <td align=center>Transfer
  2577. <td colspan=3>&nbsp;
  2578. <tr valign=top> <td>|
  2579. <td align=center>Ghostscript color
  2580. <td>|
  2581. <td align=center>=&gt;
  2582. <td>|
  2583. <td align=center>Ghostscript raster
  2584. <td>|
  2585. <td align=center>=&gt;
  2586. <td>|
  2587. <td align=center>Dithering data
  2588. <td>|
  2589. <tr valign=top> <td>|
  2590. <td>&nbsp;
  2591. <td>|
  2592. <td>&nbsp;
  2593. <td>|
  2594. <td align=center>1/2/4/8/16/32-bit
  2595. <td>|
  2596. <td>&nbsp;
  2597. <td>|
  2598. <td>&nbsp;
  2599. <td>|
  2600. <tr valign=top> <td>|
  2601. <td align=center>1/3/4 16-bit values
  2602. <td>|
  2603. <td>&nbsp;
  2604. <td>|
  2605. <td align=center>1/3/4 values
  2606. <td>|
  2607. <td>&nbsp;
  2608. <td>|
  2609. <td align=center>(arbitrary type)
  2610. <td>|
  2611. </table></blockquote>
  2612. <p>
  2613. Due to the limitations on raster storage, information is lost in the first
  2614. transformation step, except for the 16-bit monochrome mode. So any color
  2615. adjustment should take place before this step and this is where the optional
  2616. <b><tt>ColorAdjustMatrix</tt></b> works.
  2617. <p>
  2618. The first transformation step, called "coding", is controlled by the
  2619. <b><tt>?coding</tt></b> arrays. The decoding process expands the range of
  2620. values expontentially to a larger range than that provided by the initial
  2621. Ghostscript color model, and is therefore a reasonable place to make
  2622. device- or algorithm-specific adjustments. This is where the
  2623. <b><tt>?transfer</tt></b> arrays are used. Array access might be not the
  2624. fastest method, but its generality is superior, so this step is always
  2625. based upon internally algorithm-specific array access. If 8 bits are stored
  2626. per color component and if the algorithm uses bytes too, the second
  2627. transformation is included within the first, which saves significant
  2628. computation time when printing the data.
  2629. <h3><a name="STC_CAM"></a><b><tt>ColorAdjustMatrix</tt></b></h3>
  2630. <p>
  2631. The driver supports different values for <b><tt>ProcessColorModel</tt></b>,
  2632. which raises the need for different color adjustments. Here
  2633. "<b><tt>CAM</tt></b>" stands for "<b><tt>ColorAdjustMatrix</tt></b>".
  2634. <dl>
  2635. <dt><b><tt>DeviceGray</tt></b> (three floats)
  2636. <dd><pre>if ((r == g) &amp;&amp; (g == b))
  2637. K' = 1.0 - R;
  2638. else
  2639. K' = 1.0 - CAM[0] * R + CAM[1] * G + CAM[2] * B;</pre>
  2640. <p>
  2641. According to the <a href="Drivers.htm">documentation on drivers</a>, the
  2642. latter (the "else" clause) should never happen.
  2643. </dl>
  2644. <dl>
  2645. <dt><b><tt>DeviceRGB</tt></b> (nine floats)
  2646. <dd><pre>if((r == g) &amp;&amp; (g == b))
  2647. R' = B' = G' = R;
  2648. else
  2649. R' = CAM[0]*R + CAM[1]*G + CAM[2]*B;
  2650. G' = CAM[3]*R + CAM[4]*G + CAM[5]*B;
  2651. B' = CAM[6]*R + CAM[7]*G + CAM[8]*B;</pre>
  2652. <p>
  2653. The printer always uses four inks, so a special treatment of black is
  2654. provided. Algorithms may take special action if R, G, and B are all
  2655. equal.
  2656. </dl>
  2657. <dl>
  2658. <dt><b><tt>DeviceCMYK</tt></b> (sixteen floats)
  2659. <dd>
  2660. <pre>if((c == m) &amp;&amp; (m == y))
  2661. K' = max(C,K);
  2662. C' = M' = Y' = 0;
  2663. else
  2664. K = min(C,M,Y);
  2665. if((K &gt; 0) &amp;&amp; ColorAdjustMatrix_present) { =&gt; UCR
  2666. C -= K;
  2667. M -= K;
  2668. Y -= K;
  2669. }
  2670. C' = CAM[ 0]*C + CAM[ 1]*M + CAM[ 2]*Y + CAM[ 3]*K;
  2671. M' = CAM[ 4]*C + CAM[ 5]*M + CAM[ 6]*Y + CAM[ 7]*K;
  2672. Y' = CAM[ 8]*C + CAM[ 9]*M + CAM[10]*Y + CAM[11]*K;
  2673. K' = CAM[12]*C + CAM[13]*M + CAM[14]*Y + CAM[15]*K;</pre>
  2674. <p>
  2675. Again we have a special black treatment. "<b><tt>max(C,K)</tt></b>" was introduced
  2676. because of a slight misbehaviour of Ghostscript, which delivers
  2677. black under certain circumstances as (1,1,1,0). Normally, when
  2678. no special black separation and undercolor removal procedures
  2679. are defined at the PostScript level, either (C,M,Y,0) or (0,0,0,K)
  2680. values are mapped. This would make the extended <b><tt>ColorAdjustMatrix</tt></b>
  2681. quite tedious, and so during mapping, black separation is done for
  2682. (C,M,Y,0) requests; and if there is a <b><tt>ColorAdjustMatrix</tt></b>, undercolor
  2683. removal is used too. In other words the default matrix is:
  2684. <blockquote><table>
  2685. <tr> <td>1 <td>0 <td>0 <td>1
  2686. <tr> <td>0 <td>1 <td>0 <td>1
  2687. <tr> <td>0 <td>0 <td>1 <td>1
  2688. <tr> <td>0 <td>0 <td>0 <td>1
  2689. </table></blockquote>
  2690. <p>
  2691. and it is applied to CMYK values with separated and removed black. Raising
  2692. the CMY coefficients while lowering the K coefficients reduces black and
  2693. intensifies color. But be careful, because even small deviations from the
  2694. default cause drastic changes.
  2695. </dl>
  2696. <p>
  2697. If no <b><tt>ColorAdjustMatrix</tt></b> is set, the matrix computations are
  2698. skipped. Thus the transformation reduces to range inversion in monochrome
  2699. mode and black separation in CMYK mode.
  2700. <h3><a name="STC_RGBCMYK_coding"></a>RGB / CMYK coding and transfer, and <b><tt>BitsPerPixel</tt></b></h3>
  2701. <p>
  2702. These two (groups of) parameters are arrays of floating-point numbers in
  2703. the range 0.0 to 1.0. They control the truncation to the desired number of
  2704. bits stored in raster memory (<b><tt>BitsPerPixel</tt></b>) and the ink
  2705. density. The "truncation" may become a nonlinear function if any of the
  2706. <b><tt>?coding</tt></b> arrays is set. Assume the following Ghostscript
  2707. invocation:
  2708. <blockquote><pre>gs -sDEVICE=stcolor -sDithering=fscmyk -dBitsPerPixel=16 \
  2709. -dKcoding='{ 0.0 0.09 0.9 1.0 }' \
  2710. -dMcoding='{ 0.0 0.09 0.9 1.0 }' \
  2711. -dKtransfer='{ 0.0 0.09 0.9 1.0 }' \
  2712. -dYtransfer='{ 0.0 0.09 0.9 1.0 }'</pre>
  2713. </blockquote>
  2714. <p>
  2715. We may have either or both of <b><tt>?coding</tt></b> and
  2716. <b><tt>?transfer</tt></b>, giving four possible combinations. (These four
  2717. combinations appear in the given example.) The resulting mapping appears
  2718. in the following tables, where except for the internal Indices (4
  2719. components &times; 4 bits = 16 <b><tt>BitsPerPixel</tt></b>), all values
  2720. are normalized to the range 0 to 1. The actual range is 0 to 65535 for the
  2721. Ghostscript color and 0 to 16777215 for the ink values delivered to the
  2722. <b><tt>fscmyk</tt></b> algorithm. Sorry for the bunch of numbers
  2723. following, but you may try this example in conjunction with
  2724. <b><tt>stcinfo.ps</tt></b>, which should give you a graphical printout of
  2725. the following numbers when you issue a <b><tt>showpage</tt></b> command.
  2726. <blockquote><table cellpadding=0 cellspacing=0>
  2727. <tr> <td>&nbsp;
  2728. <td>&nbsp;
  2729. <th colspan=5>Cyan<hr>
  2730. <td>&nbsp;
  2731. <th colspan=5>Magenta<hr>
  2732. <tr valign=top> <th>CI/15
  2733. <td>&nbsp;
  2734. <th>gs_color_values
  2735. <td>&nbsp;
  2736. <th>CI
  2737. <td>&nbsp;
  2738. <th>Ink
  2739. <td>&nbsp;
  2740. <th>gs_color_values
  2741. <td>&nbsp;
  2742. <th>CI
  2743. <td>&nbsp;
  2744. <th>Ink
  2745. <tr> <td colspan=13><hr>
  2746. <tr valign=top> <td align=center>0.000
  2747. <td>&nbsp;
  2748. <td align=center>0.000 - 0.062
  2749. <td>&nbsp;
  2750. <td align=right>0
  2751. <td>&nbsp;
  2752. <td align=center>0.000
  2753. <td>&nbsp;
  2754. <td align=center>-0.123 - 0.123
  2755. <td>&nbsp;
  2756. <td align=right>0
  2757. <td>&nbsp;
  2758. <td align=center>0.000
  2759. <tr valign=top> <td align=center>0.067
  2760. <td>&nbsp;
  2761. <td align=center>0.063 - 0.125
  2762. <td>&nbsp;
  2763. <td align=right>1
  2764. <td>&nbsp;
  2765. <td align=center>0.067
  2766. <td>&nbsp;
  2767. <td align=center>0.123 - 0.299
  2768. <td>&nbsp;
  2769. <td align=right>1
  2770. <td>&nbsp;
  2771. <td align=center>0.247
  2772. <tr valign=top> <td align=center>0.133
  2773. <td>&nbsp;
  2774. <td align=center>0.125 - 0.187
  2775. <td>&nbsp;
  2776. <td align=right>2
  2777. <td>&nbsp;
  2778. <td align=center>0.133
  2779. <td>&nbsp;
  2780. <td align=center>0.299 - 0.365
  2781. <td>&nbsp;
  2782. <td align=right>2
  2783. <td>&nbsp;
  2784. <td align=center>0.351
  2785. <tr valign=top> <td align=center>0.200
  2786. <td>&nbsp;
  2787. <td align=center>0.188 - 0.250
  2788. <td>&nbsp;
  2789. <td align=right>3
  2790. <td>&nbsp;
  2791. <td align=center>0.200
  2792. <td>&nbsp;
  2793. <td align=center>0.365 - 0.392
  2794. <td>&nbsp;
  2795. <td align=right>3
  2796. <td>&nbsp;
  2797. <td align=center>0.379
  2798. <tr valign=top> <td align=center>0.267
  2799. <td>&nbsp;
  2800. <td align=center>0.250 - 0.312
  2801. <td>&nbsp;
  2802. <td align=right>4
  2803. <td>&nbsp;
  2804. <td align=center>0.267
  2805. <td>&nbsp;
  2806. <td align=center>0.392 - 0.420
  2807. <td>&nbsp;
  2808. <td align=right>4
  2809. <td>&nbsp;
  2810. <td align=center>0.406
  2811. <tr valign=top> <td align=center>0.333
  2812. <td>&nbsp;
  2813. <td align=center>0.313 - 0.375
  2814. <td>&nbsp;
  2815. <td align=right>5
  2816. <td>&nbsp;
  2817. <td align=center>0.333
  2818. <td>&nbsp;
  2819. <td align=center>0.420 - 0.447
  2820. <td>&nbsp;
  2821. <td align=right>5
  2822. <td>&nbsp;
  2823. <td align=center>0.433
  2824. <tr valign=top> <td align=center>0.400
  2825. <td>&nbsp;
  2826. <td align=center>0.375 - 0.437
  2827. <td>&nbsp;
  2828. <td align=right>6
  2829. <td>&nbsp;
  2830. <td align=center>0.400
  2831. <td>&nbsp;
  2832. <td align=center>0.447 - 0.475
  2833. <td>&nbsp;
  2834. <td align=right>6
  2835. <td>&nbsp;
  2836. <td align=center>0.461
  2837. <tr valign=top> <td align=center>0.467
  2838. <td>&nbsp;
  2839. <td align=center>0.438 - 0.500
  2840. <td>&nbsp;
  2841. <td align=right>7
  2842. <td>&nbsp;
  2843. <td align=center>0.467
  2844. <td>&nbsp;
  2845. <td align=center>0.475 - 0.502
  2846. <td>&nbsp;
  2847. <td align=right>7
  2848. <td>&nbsp;
  2849. <td align=center>0.488
  2850. <tr valign=top> <td align=center>0.533
  2851. <td>&nbsp;
  2852. <td align=center>0.500 - 0.562
  2853. <td>&nbsp;
  2854. <td align=right>8
  2855. <td>&nbsp;
  2856. <td align=center>0.533
  2857. <td>&nbsp;
  2858. <td align=center>0.502 - 0.529
  2859. <td>&nbsp;
  2860. <td align=right>8
  2861. <td>&nbsp;
  2862. <td align=center>0.516
  2863. <tr valign=top> <td align=center>0.600
  2864. <td>&nbsp;
  2865. <td align=center>0.563 - 0.625
  2866. <td>&nbsp;
  2867. <td align=right>9
  2868. <td>&nbsp;
  2869. <td align=center>0.600
  2870. <td>&nbsp;
  2871. <td align=center>0.529 - 0.557
  2872. <td>&nbsp;
  2873. <td align=right>9
  2874. <td>&nbsp;
  2875. <td align=center>0.543
  2876. <tr valign=top> <td align=center>0.667
  2877. <td>&nbsp;
  2878. <td align=center>0.625 - 0.687
  2879. <td>&nbsp;
  2880. <td align=right>10
  2881. <td>&nbsp;
  2882. <td align=center>0.667
  2883. <td>&nbsp;
  2884. <td align=center>0.557 - 0.584
  2885. <td>&nbsp;
  2886. <td align=right>10
  2887. <td>&nbsp;
  2888. <td align=center>0.571
  2889. <tr valign=top> <td align=center>0.733
  2890. <td>&nbsp;
  2891. <td align=center>0.688 - 0.750
  2892. <td>&nbsp;
  2893. <td align=right>11
  2894. <td>&nbsp;
  2895. <td align=center>0.733
  2896. <td>&nbsp;
  2897. <td align=center>0.584 - 0.612
  2898. <td>&nbsp;
  2899. <td align=right>11
  2900. <td>&nbsp;
  2901. <td align=center>0.598
  2902. <tr valign=top> <td align=center>0.800
  2903. <td>&nbsp;
  2904. <td align=center>0.750 - 0.812
  2905. <td>&nbsp;
  2906. <td align=right>12
  2907. <td>&nbsp;
  2908. <td align=center>0.800
  2909. <td>&nbsp;
  2910. <td align=center>0.612 - 0.639
  2911. <td>&nbsp;
  2912. <td align=right>12
  2913. <td>&nbsp;
  2914. <td align=center>0.626
  2915. <tr valign=top> <td align=center>0.867
  2916. <td>&nbsp;
  2917. <td align=center>0.813 - 0.875
  2918. <td>&nbsp;
  2919. <td align=right>13
  2920. <td>&nbsp;
  2921. <td align=center>0.867
  2922. <td>&nbsp;
  2923. <td align=center>0.639 - 0.715
  2924. <td>&nbsp;
  2925. <td align=right>13
  2926. <td>&nbsp;
  2927. <td align=center>0.653
  2928. <tr valign=top> <td align=center>0.933
  2929. <td>&nbsp;
  2930. <td align=center>0.875 - 0.937
  2931. <td>&nbsp;
  2932. <td align=right>14
  2933. <td>&nbsp;
  2934. <td align=center>0.933
  2935. <td>&nbsp;
  2936. <td align=center>0.715 - 0.889
  2937. <td>&nbsp;
  2938. <td align=right>14
  2939. <td>&nbsp;
  2940. <td align=center>0.778
  2941. <tr valign=top> <td align=center>1.000
  2942. <td>&nbsp;
  2943. <td align=center>0.938 - 1.000
  2944. <td>&nbsp;
  2945. <td align=right>15
  2946. <td>&nbsp;
  2947. <td align=center>1.000
  2948. <td>&nbsp;
  2949. <td align=center>0.889 - 1.111
  2950. <td>&nbsp;
  2951. <td align=right>15
  2952. <td>&nbsp;
  2953. <td align=center>1.000
  2954. </table></blockquote>
  2955. <p>
  2956. The difference between cyan and magenta is the presence of a coding array.
  2957. The coding process must map a range of color values to each of the sixteen
  2958. component indices. If no coding array is given, this is accomplished
  2959. by dividing by 4096, equivalent to a right shift by 12 bits. The
  2960. final ink density resides in the given interval and moves from the left to
  2961. the right side from 0 to 15. For magenta there is a coding array
  2962. and the ink value matches the center of the intervals. But the distribution
  2963. of the mapped intervals follows the given coding array and is nonlinear in
  2964. the linear color space of Ghostscript.
  2965. <p>
  2966. Now let us take a look at the case with transfer arrays:
  2967. <blockquote><table cellpadding=0 cellspacing=0>
  2968. <tr> <td>&nbsp;
  2969. <td>&nbsp;
  2970. <th colspan=5>Yellow<hr>
  2971. <td>&nbsp;
  2972. <th colspan=5>Black<hr>
  2973. <tr valign=top> <th>CI/15
  2974. <td>&nbsp;
  2975. <th>gs_color_values
  2976. <td>&nbsp;
  2977. <th>CI
  2978. <td>&nbsp;
  2979. <th>Ink
  2980. <td>&nbsp;
  2981. <th>gs_color_values
  2982. <td>&nbsp;
  2983. <th>CI
  2984. <td>&nbsp;
  2985. <th>Ink
  2986. <tr> <td colspan=13><hr>
  2987. <tr valign=top> <td align=center>0.000
  2988. <td>&nbsp;
  2989. <td align=center>0.000 - 0.062
  2990. <td>&nbsp;
  2991. <td align=right>0
  2992. <td>&nbsp;
  2993. <td align=center>0.000
  2994. <td>&nbsp;
  2995. <td align=center>-0.123 - 0.123
  2996. <td>&nbsp;
  2997. <td align=right>0
  2998. <td>&nbsp;
  2999. <td align=center>0.000
  3000. <tr valign=top> <td align=center>0.067
  3001. <td>&nbsp;
  3002. <td align=center>0.063 - 0.125
  3003. <td>&nbsp;
  3004. <td align=right>1
  3005. <td>&nbsp;
  3006. <td align=center>0.018
  3007. <td>&nbsp;
  3008. <td align=center>0.123 - 0.299
  3009. <td>&nbsp;
  3010. <td align=right>1
  3011. <td>&nbsp;
  3012. <td align=center>0.067
  3013. <tr valign=top> <td align=center>0.133
  3014. <td>&nbsp;
  3015. <td align=center>0.125 - 0.187
  3016. <td>&nbsp;
  3017. <td align=right>2
  3018. <td>&nbsp;
  3019. <td align=center>0.036
  3020. <td>&nbsp;
  3021. <td align=center>0.299 - 0.365
  3022. <td>&nbsp;
  3023. <td align=right>2
  3024. <td>&nbsp;
  3025. <td align=center>0.133
  3026. <tr valign=top> <td align=center>0.200
  3027. <td>&nbsp;
  3028. <td align=center>0.188 - 0.250
  3029. <td>&nbsp;
  3030. <td align=right>3
  3031. <td>&nbsp;
  3032. <td align=center>0.054
  3033. <td>&nbsp;
  3034. <td align=center>0.365 - 0.392
  3035. <td>&nbsp;
  3036. <td align=right>3
  3037. <td>&nbsp;
  3038. <td align=center>0.200
  3039. <tr valign=top> <td align=center>0.267
  3040. <td>&nbsp;
  3041. <td align=center>0.250 - 0.312
  3042. <td>&nbsp;
  3043. <td align=right>4
  3044. <td>&nbsp;
  3045. <td align=center>0.072
  3046. <td>&nbsp;
  3047. <td align=center>0.392 - 0.420
  3048. <td>&nbsp;
  3049. <td align=right>4
  3050. <td>&nbsp;
  3051. <td align=center>0.267
  3052. <tr valign=top> <td align=center>0.333
  3053. <td>&nbsp;
  3054. <td align=center>0.313 - 0.375
  3055. <td>&nbsp;
  3056. <td align=right>5
  3057. <td>&nbsp;
  3058. <td align=center>0.090
  3059. <td>&nbsp;
  3060. <td align=center>0.420 - 0.447
  3061. <td>&nbsp;
  3062. <td align=right>5
  3063. <td>&nbsp;
  3064. <td align=center>0.333
  3065. <tr valign=top> <td align=center>0.400
  3066. <td>&nbsp;
  3067. <td align=center>0.375 - 0.437
  3068. <td>&nbsp;
  3069. <td align=right>6
  3070. <td>&nbsp;
  3071. <td align=center>0.252
  3072. <td>&nbsp;
  3073. <td align=center>0.447 - 0.475
  3074. <td>&nbsp;
  3075. <td align=right>6
  3076. <td>&nbsp;
  3077. <td align=center>0.400
  3078. <tr valign=top> <td align=center>0.467
  3079. <td>&nbsp;
  3080. <td align=center>0.438 - 0.500
  3081. <td>&nbsp;
  3082. <td align=right>7
  3083. <td>&nbsp;
  3084. <td align=center>0.414
  3085. <td>&nbsp;
  3086. <td align=center>0.475 - 0.502
  3087. <td>&nbsp;
  3088. <td align=right>7
  3089. <td>&nbsp;
  3090. <td align=center>0.467
  3091. <tr valign=top> <td align=center>0.533
  3092. <td>&nbsp;
  3093. <td align=center>0.500 - 0.562
  3094. <td>&nbsp;
  3095. <td align=right>8
  3096. <td>&nbsp;
  3097. <td align=center>0.576
  3098. <td>&nbsp;
  3099. <td align=center>0.502 - 0.529
  3100. <td>&nbsp;
  3101. <td align=right>8
  3102. <td>&nbsp;
  3103. <td align=center>0.533
  3104. <tr valign=top> <td align=center>0.600
  3105. <td>&nbsp;
  3106. <td align=center>0.563 - 0.625
  3107. <td>&nbsp;
  3108. <td align=right>9
  3109. <td>&nbsp;
  3110. <td align=center>0.738
  3111. <td>&nbsp;
  3112. <td align=center>0.529 - 0.557
  3113. <td>&nbsp;
  3114. <td align=right>9
  3115. <td>&nbsp;
  3116. <td align=center>0.600
  3117. <tr valign=top> <td align=center>0.667
  3118. <td>&nbsp;
  3119. <td align=center>0.625 - 0.687
  3120. <td>&nbsp;
  3121. <td align=right>10
  3122. <td>&nbsp;
  3123. <td align=center>0.900
  3124. <td>&nbsp;
  3125. <td align=center>0.557 - 0.584
  3126. <td>&nbsp;
  3127. <td align=right>10
  3128. <td>&nbsp;
  3129. <td align=center>0.667
  3130. <tr valign=top> <td align=center>0.733
  3131. <td>&nbsp;
  3132. <td align=center>0.688 - 0.750
  3133. <td>&nbsp;
  3134. <td align=right>11
  3135. <td>&nbsp;
  3136. <td align=center>0.920
  3137. <td>&nbsp;
  3138. <td align=center>0.584 - 0.612
  3139. <td>&nbsp;
  3140. <td align=right>11
  3141. <td>&nbsp;
  3142. <td align=center>0.733
  3143. <tr valign=top> <td align=center>0.800
  3144. <td>&nbsp;
  3145. <td align=center>0.750 - 0.812
  3146. <td>&nbsp;
  3147. <td align=right>12
  3148. <td>&nbsp;
  3149. <td align=center>0.940
  3150. <td>&nbsp;
  3151. <td align=center>0.612 - 0.639
  3152. <td>&nbsp;
  3153. <td align=right>12
  3154. <td>&nbsp;
  3155. <td align=center>0.800
  3156. <tr valign=top> <td align=center>0.867
  3157. <td>&nbsp;
  3158. <td align=center>0.813 - 0.875
  3159. <td>&nbsp;
  3160. <td align=right>13
  3161. <td>&nbsp;
  3162. <td align=center>0.960
  3163. <td>&nbsp;
  3164. <td align=center>0.639 - 0.715
  3165. <td>&nbsp;
  3166. <td align=right>13
  3167. <td>&nbsp;
  3168. <td align=center>0.867
  3169. <tr valign=top> <td align=center>0.933
  3170. <td>&nbsp;
  3171. <td align=center>0.875 - 0.937
  3172. <td>&nbsp;
  3173. <td align=right>14
  3174. <td>&nbsp;
  3175. <td align=center>0.980
  3176. <td>&nbsp;
  3177. <td align=center>0.715 - 0.889
  3178. <td>&nbsp;
  3179. <td align=right>14
  3180. <td>&nbsp;
  3181. <td align=center>0.933
  3182. <tr valign=top> <td align=center>1.000
  3183. <td>&nbsp;
  3184. <td align=center>0.938 - 1.000
  3185. <td>&nbsp;
  3186. <td align=right>15
  3187. <td>&nbsp;
  3188. <td align=center>1.000
  3189. <td>&nbsp;
  3190. <td align=center>0.889 - 1.111
  3191. <td>&nbsp;
  3192. <td align=right>15
  3193. <td>&nbsp;
  3194. <td align=center>1.000
  3195. </table></blockquote>
  3196. <p>
  3197. Yellow uses a transfer array. There is no linear correspondence between
  3198. the color and the ink values: this correspondence is defined through the
  3199. given array. In other words, the transfer arrays define a nonlinear ink
  3200. characteristic, which is exactly the same functionality that PostScript's
  3201. "(color)transfer" function provides.
  3202. <p>
  3203. While for yellow the intervals match the intervals used with cyan, for
  3204. black the intervals match the magenta intervals. But watch the
  3205. correspondence between the CI/15 values and the ink density for black: this
  3206. is a linear distribution in the ink domain.
  3207. <p>
  3208. Not a bad idea, I think. Consider the <b><tt>fs2</tt></b> algorithm: it
  3209. uses values in the range 0 to 255. If any transfer array were alone, some
  3210. of the 256 possible values would never be used and others would be used for
  3211. adjacent intervals several times. Establishing an identical coding array
  3212. solves this problem, so the full potential of the algorithm is used.
  3213. <p>
  3214. Another useful feature of the coding arrays is that they are internally
  3215. normalized to the range 0-1. In 720x720dpi mode the transfer arrays in
  3216. <b><tt>stcolor.ps</tt></b> limit the dot density to about 50%, so these
  3217. arrays end at 0.5 (and begin at 0.5 for RGB). Because of automatic
  3218. normalization, these arrays can also be used as coding arrays. But of
  3219. course in the <b><tt>fs2</tt></b> case mentioned above, values from 0 to
  3220. 127 will never be delivered to the algorithm, while values 128-255 are
  3221. delivered for adjacent intervals.
  3222. <p>
  3223. To clarify the intended use of the three parameters (parameter groups), keep this in mind:
  3224. <blockquote><ul>
  3225. <li><b><tt>ColorAdjustMatrix</tt></b> is never used when transferring gray
  3226. values. This restricts it to what the name says: adjustment of colors,
  3227. that is, correction for miscolored ink. Do not use it for saturation or
  3228. brightness control.
  3229. <li><b><tt>?transfer</tt></b> arrays control the values delivered to the
  3230. driver, which in turn controls the ink quantity. Use these arrays to
  3231. control saturation and brightness. In general these arrays are identical
  3232. for all inks. If they differ they provide a simpler scheme for color
  3233. correction, which is not necessarily faster than the
  3234. <b><tt>ColorAdjustMatrix</tt></b>.
  3235. <li><b><tt>?coding</tt></b> arrays control the color value intervals mapped
  3236. to the internal color indices.
  3237. </ul></blockquote>
  3238. <h3><a name="What_is_weaving"></a>What is weaving?</h3>
  3239. <p>
  3240. The Epson Stylus Color has a head assembly that contains two physically
  3241. identifiable heads, one for black and one for cyan, magenta, and yellow
  3242. (CMY). This makes four "logical" heads, one for each color component.
  3243. Each of these four heads has several jets at some vertical (Y) distance
  3244. from one another, so several horizontal lines can be printed of a given
  3245. color during one pass of the heads. From experience I think there are
  3246. fifteen jets per color, spaced at 1/90in.
  3247. <p>
  3248. So the question arises of how to print at a Y resolution of 360dpi with
  3249. 90dpi jets. Simply by division one gets 360dpi/90dpi = 4, which tells us
  3250. that 4 passes of the head assembly are needed to achieve a Y resolution of
  3251. 360dpi.
  3252. <p>
  3253. Weaving is the method of how the fifteen jets are used to print adjacent
  3254. horizontal rows separated here by 1/360 inch:
  3255. <blockquote><table cellpadding=0 cellspacing=0>
  3256. <tr><th colspan=17 bgcolor="#CCCC00"><hr><font size="+1">Print-head jets used with and without weaving</font><hr>
  3257. <tr> <td>&nbsp;
  3258. <td>&nbsp;
  3259. <th valign=bottom colspan=7>Weaving<hr>
  3260. <td>&nbsp;&nbsp;&nbsp;&nbsp;
  3261. <th valign=bottom colspan=7>noWeave<hr>
  3262. <tr valign=top> <td>&nbsp;
  3263. <th>Pass
  3264. <th>1
  3265. <td>&nbsp;
  3266. <th>2
  3267. <td>&nbsp;
  3268. <th>3
  3269. <td>&nbsp;
  3270. <th>4
  3271. <td>&nbsp;
  3272. <th>1
  3273. <td>&nbsp;
  3274. <th>2
  3275. <td>&nbsp;
  3276. <th>3
  3277. <td>&nbsp;
  3278. <th>4
  3279. <tr> <th>Row
  3280. <tr valign=top> <td align=center>0
  3281. <td>&nbsp;
  3282. <td align=center>jet 0
  3283. <td>&nbsp;
  3284. <td align=center>--
  3285. <td>&nbsp;
  3286. <td align=center>--
  3287. <td>&nbsp;
  3288. <td align=center>--
  3289. <td>&nbsp;
  3290. <td align=center>jet 0
  3291. <td>&nbsp;
  3292. <td align=center>--
  3293. <td>&nbsp;
  3294. <td align=center>--
  3295. <td>&nbsp;
  3296. <td align=center>--
  3297. <tr valign=top> <td align=center>1
  3298. <td>&nbsp;
  3299. <td align=center>--
  3300. <td>&nbsp;
  3301. <td align=center>jet 1
  3302. <td>&nbsp;
  3303. <td align=center>--
  3304. <td>&nbsp;
  3305. <td align=center>--
  3306. <td>&nbsp;
  3307. <td align=center>--
  3308. <td>&nbsp;
  3309. <td align=center>jet 0
  3310. <td>&nbsp;
  3311. <td align=center>--
  3312. <td>&nbsp;
  3313. <td align=center>--
  3314. <tr valign=top> <td align=center>2
  3315. <td>&nbsp;
  3316. <td align=center>--
  3317. <td>&nbsp;
  3318. <td align=center>--
  3319. <td>&nbsp;
  3320. <td align=center>jet 2
  3321. <td>&nbsp;
  3322. <td align=center>--
  3323. <td>&nbsp;
  3324. <td align=center>--
  3325. <td>&nbsp;
  3326. <td align=center>--
  3327. <td>&nbsp;
  3328. <td align=center>jet 0
  3329. <td>&nbsp;
  3330. <td align=center>--
  3331. <tr valign=top> <td align=center>3
  3332. <td>&nbsp;
  3333. <td align=center>--
  3334. <td>&nbsp;
  3335. <td align=center>--
  3336. <td>&nbsp;
  3337. <td align=center>--
  3338. <td>&nbsp;
  3339. <td align=center>jet 3
  3340. <td>&nbsp;
  3341. <td align=center>--
  3342. <td>&nbsp;
  3343. <td align=center>--
  3344. <td>&nbsp;
  3345. <td align=center>--
  3346. <td>&nbsp;
  3347. <td align=center>jet 0
  3348. <tr valign=top> <td align=center>4
  3349. <td>&nbsp;
  3350. <td align=center>jet 1
  3351. <td>&nbsp;
  3352. <td align=center>--
  3353. <td>&nbsp;
  3354. <td align=center>--
  3355. <td>&nbsp;
  3356. <td align=center>--
  3357. <td>&nbsp;
  3358. <td align=center>jet 1
  3359. <td>&nbsp;
  3360. <td align=center>--
  3361. <td>&nbsp;
  3362. <td align=center>--
  3363. <td>&nbsp;
  3364. <td align=center>--
  3365. <tr valign=top> <td align=center>5
  3366. <td>&nbsp;
  3367. <td align=center>--
  3368. <td>&nbsp;
  3369. <td align=center>jet 2
  3370. <td>&nbsp;
  3371. <td align=center>--
  3372. <td>&nbsp;
  3373. <td align=center>--
  3374. <td>&nbsp;
  3375. <td align=center>--
  3376. <td>&nbsp;
  3377. <td align=center>jet 1
  3378. <td>&nbsp;
  3379. <td align=center>--
  3380. <td>&nbsp;
  3381. <td align=center>--
  3382. <tr valign=top> <td align=center>6
  3383. <td>&nbsp;
  3384. <td align=center>--
  3385. <td>&nbsp;
  3386. <td align=center>--
  3387. <td>&nbsp;
  3388. <td align=center>jet 3
  3389. <td>&nbsp;
  3390. <td align=center>--
  3391. <td>&nbsp;
  3392. <td align=center>--
  3393. <td>&nbsp;
  3394. <td align=center>--
  3395. <td>&nbsp;
  3396. <td align=center>jet 1
  3397. <td>&nbsp;
  3398. <td align=center>--
  3399. <tr valign=top> <th>...
  3400. </table></blockquote>
  3401. <p>
  3402. Now let's assume that the dot diameter is different for each individual
  3403. jet, but the average among the jets matches the desired resolution. With
  3404. weaving, adjacent rows are printed by different jets, thus some averaging
  3405. takes place. Without weaving, adjacent rows are printed by the same jet
  3406. and this makes the dot diameter deviations visible as 1/90in stripes on
  3407. the paper.
  3408. <h3><a name="STC_print_modes"></a>Print mode parameters</h3>
  3409. <p>
  3410. The parameters "<b><tt>Unidirectional</tt></b>",
  3411. "<b><tt>Microweave</tt></b>", "<b><tt>noWeave</tt></b>",
  3412. "<b><tt>OutputCode</tt></b>", "<b><tt>Model</tt></b>" and the given
  3413. resolution control the data generated for the printer.
  3414. <h4><a name="STC_unidirectional"></a><b><tt>Unidirectional</tt></b></h4>
  3415. <p>
  3416. Simply toggles the unidirectional mode of the printer. Setting
  3417. "<b><tt>Unidirectional</tt></b>" definitely slows printing speed, but may
  3418. improve the quality. I use this for printing transparencies, where fast
  3419. head movement could smear the ink.
  3420. <h4><a name="STC_noweave"></a><b><tt>Microweave</tt></b>,
  3421. <b><tt>noWeave</tt></b> and <b><tt>OutputCode=deltarow</tt></b></h4>
  3422. <p>
  3423. The first are two booleans, which implies that four combinations are
  3424. possible. Actually only three exist (if you don't count for
  3425. <b><tt>deltarow</tt></b>): <b><tt>Softweave</tt></b>,
  3426. <b><tt>Microweave</tt></b>, and <b><tt>noWeave</tt></b>. The first and
  3427. second are functionally identical, the difference being whether the driver
  3428. or the printer does the job.
  3429. <p>
  3430. In the default <b><tt>Softweave</tt></b> mode the driver sends the data
  3431. properly arranged to the printer, while in <b><tt>Microweave</tt></b> mode,
  3432. it is the printer that arranges the data. But in general the host processor
  3433. is much faster than the printer's processor, and thus it is faster for the
  3434. host do the job. In addition to that, for 720dpi eight passes are
  3435. required, and the amount of buffer space needed to buffer the data for the
  3436. passes is far beyond the printer's memory. <b><tt>Softweave</tt></b>
  3437. requires an odd value of "<b><tt>escp_Band</tt></b>"; the Stylus Color
  3438. provides fifteen for that.
  3439. <p>
  3440. "<b><tt>OutputCode</tt></b>" controls the encoding used. In the basic
  3441. modes, the choice consists of "plain" and "runlength". The computation of
  3442. runlength-encoded data does not take much time, less than the data tranfer
  3443. to the printer; thus this is the recommended mode, and of course the
  3444. default. With the Stylus Color, Epson introduced some new encoding
  3445. principles, namely "tiff" and "deltarow". While the first was omitted from
  3446. this driver for lack of apparent advantages, "<b><tt>deltarow</tt></b>" is
  3447. available as an option. "<b><tt>Softweave</tt></b>" cannot be used with
  3448. this encoding, so if <b><tt>OutputCode=deltarow</tt></b> is set,
  3449. <b><tt>Microweave</tt></b> becomes the default. Maybe that the size of the
  3450. ESC/P2 code becomes smaller, but I have never observed faster printing
  3451. speed. Things tend to become slower with <b><tt>deltarow</tt></b> compared
  3452. to <b><tt>Softweave</tt></b>.
  3453. <h4><a name="STC_model"></a><b><tt>Model</tt></b></h4>
  3454. <p>
  3455. Some ESC/P2 printers such as the Stylus 800 do not offer
  3456. <b><tt>Microweave</tt></b> or the commands required to do
  3457. <b><tt>Softweave</tt></b>. Setting <b><tt>Model</tt></b> just changes the
  3458. defaults and omits some parts of the initialization sequence which are not
  3459. compatible with the given printer model. Currently only
  3460. "<b><tt>st800</tt></b>" is supported besides the default
  3461. <b><tt>stcolor</tt></b>.
  3462. <h3><a name="STC_Pitfalls"></a>Bugs and pitfalls</h3>
  3463. <ul>
  3464. <li>The given <b><tt>?coding</tt></b> and <b><tt>?transfer</tt></b> arrays
  3465. should be strictly monotonic.
  3466. <li>It is impossible to change <b><tt>WHITE</tt></b>: that's your paper.
  3467. Thus RGB transfer should end at 1.0 and CMYK transfer should start at 0.0.
  3468. <li>Usually 8 bits per component yields fastest operation.
  3469. <li>The <b><tt>ColorAdjustMatrix</tt></b> is not used in the reverse
  3470. transformation used when Ghostscript does the dithering
  3471. (<b><tt>gs</tt></b>* modes). Expect funny results.
  3472. <li>If <b><tt>BitsPerPixel</tt></b> is less than 6, the entire coding and
  3473. transfer process does not work. This is always true for the
  3474. <b><tt>gs</tt></b>* modes and becomes true for the other modes if
  3475. <b><tt>BitsPerPixel</tt></b> is forced to low values.
  3476. <li>720&times;720dpi printing should never select the <b><tt>gs</tt></b>*
  3477. modes and should always use <b><tt>stcolor.ps</tt></b>. (I prefer
  3478. 360&times;720.)
  3479. </ul>
  3480. <h3><a name="STC_Tests"></a>Tests</h3>
  3481. <p>
  3482. This section gives an overview of performance in terms of processing and
  3483. printing times, from tests run after version 1.13. Printing was done
  3484. offline (simply copying a processed file to the printer) to measure real
  3485. printing speed without regard to speed of processing on the host, since at
  3486. high resolutions, processing time is the same order of magnitude and thus
  3487. may become the limiting factor.
  3488. <h4><a name="STC_OutputCodes"></a>The various OutputCodes</h4>
  3489. <p>
  3490. I ran several files though Ghostscript and recorded the size of the
  3491. resulting print code, the processing time, and the printing time, at least
  3492. for some of the files, always using these options:
  3493. <blockquote><b><tt>
  3494. gs -sDEVICE=stcolor -sPAPERSIZE=a4 stcolor.ps - &lt; file.ps
  3495. </tt></b></blockquote>
  3496. <p>
  3497. (Actually "<b><tt>-sPAPERSIZE=a4</tt></b>" is in my
  3498. <b><tt>gs_init.ps</tt></b> since I'm a germ.)
  3499. <p>"<b><tt>deltarow</tt></b>" is the new encoding principle
  3500. ("<b><tt>ESC&nbsp;.&nbsp;3&nbsp;10&nbsp;10&nbsp;1</tt></b>") with
  3501. <b><tt>Microweave</tt></b> on. It is activated with
  3502. "<b><tt>-sOutputCode=deltarow</tt></b>".
  3503. <p>"<b><tt>Softweave</tt></b>" actually means that nothing else was used:
  3504. it is the default, and implies that odd v=40/h=10/m=15 mode
  3505. ("<b><tt>ESC&nbsp;.&nbsp;1&nbsp;40&nbsp;10&nbsp;15</tt></b>").
  3506. <p>"<b><tt>Microweave</tt></b>" means "<b><tt>-dMicroweave</tt></b>",
  3507. equivalent to "<b><tt>ESC&nbsp;.&nbsp;1&nbsp;10&nbsp;10&nbsp;1</tt></b>",
  3508. with full skip optimization and microweave activated.
  3509. <p>
  3510. Finally I wanted to see the plain Kathy Ireland, and used
  3511. "<b><tt>-sOutputCode=plain</tt></b>", which just replaces runlength
  3512. encoding (RLE) by no encoding, thus using
  3513. "<b><tt>ESC&nbsp;.&nbsp;0&nbsp;40&nbsp;10&nbsp;15</tt></b>". [So sorry
  3514. <b><tt>;-)</tt></b> Kathy was still dressed in blue in front of the blue
  3515. sea on a blue air cushion -- nice to see but hard to dither.]
  3516. <p>
  3517. So here are the results.
  3518. <blockquote><table cellpadding=0 cellspacing=0>
  3519. <tr><th colspan=9 bgcolor="#CCCC00"><hr><font size="+1">File sizes and printing speeds with various weaving methods</font><hr>
  3520. <tr valign=bottom>
  3521. <td>&nbsp;
  3522. <td>&nbsp;
  3523. <th><b><tt>golfer.ps</tt></b>
  3524. <td>&nbsp;
  3525. <th><b><tt>colorcir.ps</tt></b>
  3526. <td>&nbsp;
  3527. <th><b><tt>drawing.ps</tt></b>
  3528. <td>&nbsp;
  3529. <th><b><tt>brief.ps</tt></b>
  3530. <tr> <td colspan=9><hr>
  3531. <tr valign=top> <td><b><tt>deltarow</tt></b>
  3532. <td>&nbsp;
  3533. <td>572751/48.180u
  3534. <td>&nbsp;
  3535. <td>643374/41.690u
  3536. <td>&nbsp;
  3537. <td>90142/46.180u/1:50
  3538. <td>&nbsp;
  3539. <td>178563/49.350u/2:22
  3540. <tr valign=top> <td><b><tt>Softweave</tt></b>
  3541. <td>&nbsp;
  3542. <td>559593/46.810u
  3543. <td>&nbsp;
  3544. <td>669966/44.960u
  3545. <td>&nbsp;
  3546. <td>296168/48.160u/1:30
  3547. <td>&nbsp;
  3548. <td>269808/43.320u/1:55
  3549. <tr valign=top> <td><b><tt>Microweave</tt></b>
  3550. <td>&nbsp;
  3551. <td>590999/56.060u
  3552. <td>&nbsp;
  3553. <td>754276/42.890u
  3554. <td>&nbsp;
  3555. <td>338885/47.060u/1:50
  3556. <td>&nbsp;
  3557. <td>282314/44.690u/2:22
  3558. </table></blockquote>
  3559. <blockquote><table cellpadding=0 cellspacing=0>
  3560. <tr><th colspan=3 bgcolor="#CCCC00"><hr><font size="+1">Kathy Ireland</font><hr>
  3561. <tr valign=bottom>
  3562. <td>&nbsp;
  3563. <td>&nbsp;
  3564. <th><b><tt>kathy.ps</tt></b>
  3565. <tr> <td colspan=3><hr>
  3566. <tr valign=top> <td><b><tt>deltarow</tt></b>
  3567. <td>&nbsp;
  3568. <td>3975334/111.940u/5:35
  3569. <tr valign=top> <td><b><tt>Softweave</tt></b>
  3570. <td>&nbsp;
  3571. <td>3897112/101.940u/3:10
  3572. <tr valign=top> <td><b><tt>Microweave</tt></b>
  3573. <td>&nbsp;
  3574. <td>4062829/100.990u/3:15
  3575. <tr valign=top> <td><b><tt>plain/soft</tt></b>
  3576. <td>&nbsp;
  3577. <td>5072255/104.390u/3:05
  3578. </table></blockquote>
  3579. <p>
  3580. It may be that I've not chosen the optimal <b><tt>deltarow</tt></b> code,
  3581. but even if it saves at lot of bytes, printing-speed is not increased.
  3582. <p>
  3583. At least the printer prefers plain Kathy. In other words, sending 1
  3584. Megabyte or 20% more data has no impact on printing speed.
  3585. <b><tt>drawing.ps</tt></b> is an exception to this rule: plain prints
  3586. slower than RLE.
  3587. <p>
  3588. "Unclever" coding -- especially with <b><tt>deltarow</tt></b> -- can
  3589. significantly slow down printing. But even if very significant advantages
  3590. in the size of the code are achieved, "<b><tt>deltarow</tt></b>" is not
  3591. competitive. <b><tt>colorcir.ps</tt></b> shows savings with
  3592. <b><tt>deltarow</tt></b>, but printing is a mess.
  3593. <h4><a name="STC_printing_time"></a>Printing time related to other options</h4>
  3594. <p>
  3595. Full page halftone images printed, unless otherwise noted.
  3596. <blockquote><table cellpadding=0 cellspacing=0>
  3597. <tr><th colspan=11 bgcolor="#CCCC00"><hr><font size="+1">Printing time related to other options</font><hr>
  3598. <tr valign=top> <th>dpi
  3599. <td>&nbsp;
  3600. <th colspan=3>Print mode
  3601. <td>&nbsp;
  3602. <th>Size KB
  3603. <td>&nbsp;
  3604. <th>Time
  3605. <td>&nbsp;
  3606. <th align=left>Comments
  3607. <tr> <td colspan=11><hr>
  3608. <tr valign=top> <td>180x180
  3609. <td>&nbsp;
  3610. <td>mono
  3611. <td>&nbsp;
  3612. <td align=right>-/uni
  3613. <td>&nbsp;
  3614. <td align=right>358
  3615. <td>&nbsp;
  3616. <td align=right>1:15
  3617. <td>&nbsp;
  3618. <td>&nbsp;
  3619. <tr valign=top> <td>&nbsp;
  3620. <td>&nbsp;
  3621. <td align=right>&nbsp;
  3622. <td>&nbsp;
  3623. <td align=right>-/bi
  3624. <td>&nbsp;
  3625. <td align=right>358
  3626. <td>&nbsp;
  3627. <td align=right>0:45
  3628. <td>&nbsp;
  3629. <td>&nbsp;
  3630. <tr valign=top> <td>&nbsp;
  3631. <td>&nbsp;
  3632. <td align=right>&nbsp;
  3633. <td>&nbsp;
  3634. <td align=right>micro/bi
  3635. <td>&nbsp;
  3636. <td align=right>205
  3637. <td>&nbsp;
  3638. <td align=right>0:45
  3639. <td>&nbsp;
  3640. <td>Not weaving
  3641. <tr valign=top> <td>&nbsp;
  3642. <td>&nbsp;
  3643. <td align=right>&nbsp;
  3644. <td>&nbsp;
  3645. <td align=right>soft/bi
  3646. <td>&nbsp;
  3647. <td align=right>179
  3648. <td>&nbsp;
  3649. <td align=right>1:25
  3650. <td>&nbsp;
  3651. <td>&nbsp;
  3652. <tr valign=top> <td>&nbsp;
  3653. <td>&nbsp;
  3654. <td>color
  3655. <td>&nbsp;
  3656. <td align=right>-/bi
  3657. <td>&nbsp;
  3658. <td align=right>641
  3659. <td>&nbsp;
  3660. <td align=right>2:45
  3661. <td>&nbsp;
  3662. <td>&nbsp;
  3663. <tr valign=top> <td>&nbsp;
  3664. <td>&nbsp;
  3665. <td align=right>&nbsp;
  3666. <td>&nbsp;
  3667. <td align=right>soft/bi
  3668. <td>&nbsp;
  3669. <td align=right>556
  3670. <td>&nbsp;
  3671. <td align=right>1:32
  3672. <td>&nbsp;
  3673. <td>&nbsp;
  3674. <tr valign=top> <td>360x360
  3675. <td>&nbsp;
  3676. <td>mono
  3677. <td>&nbsp;
  3678. <td align=right>-/uni
  3679. <td>&nbsp;
  3680. <td align=right>269
  3681. <td>&nbsp;
  3682. <td align=right>0:50
  3683. <td>&nbsp;
  3684. <td>Monochrome text
  3685. <tr valign=top> <td>&nbsp;
  3686. <td>&nbsp;
  3687. <td align=right>&nbsp;
  3688. <td>&nbsp;
  3689. <td align=right>-/bi
  3690. <td>&nbsp;
  3691. <td align=right>269
  3692. <td>&nbsp;
  3693. <td align=right>0:35
  3694. <td>&nbsp;
  3695. <td>Monochrome text
  3696. <tr valign=top> <td>&nbsp;
  3697. <td>&nbsp;
  3698. <td align=right>&nbsp;
  3699. <td>&nbsp;
  3700. <td align=right>micro/bi
  3701. <td>&nbsp;
  3702. <td align=right>269
  3703. <td>&nbsp;
  3704. <td align=right>2:25
  3705. <td>&nbsp;
  3706. <td>Monochrome text
  3707. <tr valign=top> <td>&nbsp;
  3708. <td>&nbsp;
  3709. <td align=right>&nbsp;
  3710. <td>&nbsp;
  3711. <td align=right>soft/uni
  3712. <td>&nbsp;
  3713. <td align=right>250
  3714. <td>&nbsp;
  3715. <td align=right>3:15
  3716. <td>&nbsp;
  3717. <td>Monochrome text
  3718. <tr valign=top> <td>&nbsp;
  3719. <td>&nbsp;
  3720. <td align=right>&nbsp;
  3721. <td>&nbsp;
  3722. <td align=right>soft/bi
  3723. <td>&nbsp;
  3724. <td align=right>250
  3725. <td>&nbsp;
  3726. <td align=right>1:55
  3727. <td>&nbsp;
  3728. <td>Monochrome text
  3729. <tr valign=top> <td>&nbsp;
  3730. <td>&nbsp;
  3731. <td>color
  3732. <td>&nbsp;
  3733. <td align=right>-/bi
  3734. <td>&nbsp;
  3735. <td align=right>346
  3736. <td>&nbsp;
  3737. <td align=right>1:00
  3738. <td>&nbsp;
  3739. <td>Sparse-color page, visible displacements
  3740. <tr valign=top> <td>&nbsp;
  3741. <td>&nbsp;
  3742. <td align=right>&nbsp;
  3743. <td>&nbsp;
  3744. <td align=right>micro/bi
  3745. <td>&nbsp;
  3746. <td align=right>346
  3747. <td>&nbsp;
  3748. <td align=right>1:50
  3749. <td>&nbsp;
  3750. <td>Sparse-color page, looks buggy -- printer?
  3751. <tr valign=top> <td>&nbsp;
  3752. <td>&nbsp;
  3753. <td align=right>&nbsp;
  3754. <td>&nbsp;
  3755. <td align=right>soft/bi
  3756. <td>&nbsp;
  3757. <td align=right>294
  3758. <td>&nbsp;
  3759. <td align=right>1:30
  3760. <td>&nbsp;
  3761. <td>Sparse-color page, O.K.
  3762. <tr valign=top> <td>&nbsp;
  3763. <td>&nbsp;
  3764. <td align=right>&nbsp;
  3765. <td>&nbsp;
  3766. <td align=right>-/bi
  3767. <td>&nbsp;
  3768. <td align=right>2218
  3769. <td>&nbsp;
  3770. <td align=right>2:45
  3771. <td>&nbsp;
  3772. <td>Visible stripes
  3773. <tr valign=top> <td>&nbsp;
  3774. <td>&nbsp;
  3775. <td align=right>&nbsp;
  3776. <td>&nbsp;
  3777. <td align=right>micro/bi
  3778. <td>&nbsp;
  3779. <td align=right>5171
  3780. <td>&nbsp;
  3781. <td align=right>3:17
  3782. <td>&nbsp;
  3783. <td>&nbsp;
  3784. <tr valign=top> <td>&nbsp;
  3785. <td>&nbsp;
  3786. <td align=right>&nbsp;
  3787. <td>&nbsp;
  3788. <td align=right>soft/bi
  3789. <td>&nbsp;
  3790. <td align=right>3675
  3791. <td>&nbsp;
  3792. <td align=right>3:05
  3793. <td>&nbsp;
  3794. <td>&nbsp;
  3795. <tr valign=top> <td>360x720
  3796. <td>&nbsp;
  3797. <td>mono
  3798. <td>&nbsp;
  3799. <td align=right>soft/bi
  3800. <td>&nbsp;
  3801. <td align=right>2761
  3802. <td>&nbsp;
  3803. <td align=right>5:40
  3804. <td>&nbsp;
  3805. <td>&nbsp;
  3806. <tr valign=top> <td>&nbsp;
  3807. <td>&nbsp;
  3808. <td>color
  3809. <td>&nbsp;
  3810. <td align=right>soft/bi
  3811. <td>&nbsp;
  3812. <td align=right>7789
  3813. <td>&nbsp;
  3814. <td align=right>6:15
  3815. <td>&nbsp;
  3816. <td>Just a small difference!
  3817. <tr valign=top> <td>720x360
  3818. <td>&nbsp;
  3819. <td>color
  3820. <td>&nbsp;
  3821. <td align=right>soft/bi
  3822. <td>&nbsp;
  3823. <td align=right>7182
  3824. <td>&nbsp;
  3825. <td align=right>5:40
  3826. <td>&nbsp;
  3827. <td>&nbsp;
  3828. <tr valign=top> <td>720x720
  3829. <td>&nbsp;
  3830. <td>color
  3831. <td>&nbsp;
  3832. <td align=right>micro/bi
  3833. <td>&nbsp;
  3834. <td align=right>14748
  3835. <td>&nbsp;
  3836. <td align=right>30:26
  3837. <td>&nbsp;
  3838. <td>Actually beyond printer's capabilities
  3839. <tr valign=top> <td>&nbsp;
  3840. <td>&nbsp;
  3841. <td align=right>&nbsp;
  3842. <td>&nbsp;
  3843. <td align=right>soft/bi
  3844. <td>&nbsp;
  3845. <td align=right>14407
  3846. <td>&nbsp;
  3847. <td align=right>11:08
  3848. <td>&nbsp;
  3849. <td>&nbsp;
  3850. </table></blockquote>
  3851. <h3><a name="STC_acks"></a>Acknowledgments</h3>
  3852. <p>
  3853. This driver was copied from <b><tt>gdevcdj.c</tt></b> (Ghostscript 3.12),
  3854. which was contributed by George Cameron, Koert Zeilstra, and Eckhard
  3855. Rueggeberg. Some of the ESC/P2 code was drawn from Richard Brown's
  3856. <b><tt>gdevescp.c</tt></b>. The POSIX interrupt code (compilation option
  3857. <b><tt>-DSTC_SIGNAL</tt></b>) is from Frederic Loyer. Several improvements
  3858. are based on discussions with Brian Converse, Bill Davidson, Gero Guenther,
  3859. Jason Patterson, ? Rueschstroer, and Steven Singer.
  3860. <p>
  3861. While I wish to thank everyone mentioned above, they are by no means
  3862. responsible for bugs in the stcolor driver -- just for the features.
  3863. <address>
  3864. Gunther Hess<br>
  3865. Richard Wagner Strasse 112<br>
  3866. D-47057 Duisburg<br>
  3867. Germany<br>
  3868. +49 203 376273 telephone (MET evening hours)<br>
  3869. &lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt;
  3870. </address>
  3871. <hr>
  3872. <h2><a name="Uniprint"></a>uniprint, a flexible unified printer driver</h2>
  3873. <p>
  3874. <b><tt>uniprint</tt></b> is a unified parametric driver by Gunther Hess
  3875. &lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt; for several
  3876. kinds of printers and devices, including
  3877. <blockquote>
  3878. <ul>
  3879. <li>any Epson Stylus Color, Stylus, or Stylus Pro
  3880. <li>HP PCL/RTL
  3881. <li>Canon BubbleJet Color 610
  3882. <li>NEC P2X
  3883. <li>Sun raster file format
  3884. </ul></blockquote>
  3885. <p>
  3886. This driver is intended to <em>become</em> a unified printer driver. If you
  3887. consider it ugly, please send me your suggestions for improvements. The
  3888. driver will be updated with them. Thus the full explanation of the driver's
  3889. name is:
  3890. <blockquote>
  3891. Ugly- -&gt; Updated- -&gt; Unified Printer Driver
  3892. </blockquote>
  3893. <p>
  3894. But you probably want to know something about the functionality.
  3895. At the time of this writing uniprint drives:
  3896. <ul>
  3897. <li>NEC Pinwriter P2X (24-pin monochrome impact printer, ESC/P style)
  3898. <li>Several Epson Stylus Color models (ESC/P2 style)
  3899. <li>HP-DeskJet 550c (basic HP-RTL)
  3900. <li>Canon BJC 610
  3901. </ul>
  3902. <p>
  3903. It can be configured for various other printers without recompilation
  3904. and offers uncompressed (ugly) Sun rasterfiles as another format, but
  3905. this format is intended for testing purposes rather than real use.
  3906. The usage of this driver is quite simple. The typical command line looks
  3907. like this:
  3908. <blockquote>
  3909. <b><tt>gs @</tt></b>{MODEL}<b><tt>.upp -sOutputFile=</tt></b>{printable file}<b><tt> MyFile.ps -c quit</tt></b>
  3910. </blockquote>
  3911. <p>
  3912. For example, from my Linux box:
  3913. <blockquote><b><tt>
  3914. gs @stc.upp -sOutputFile=/dev/lp1 tiger.ps -c quit
  3915. </tt></b></blockquote>
  3916. <blockquote><table cellpadding=0 cellspacing=0>
  3917. <tr><th colspan=6 bgcolor="#CCCC00"><hr><font size="+1">Unified Printer Parameter files distributed with Ghostscript</font><hr>
  3918. <tr> <th align=left colspan=6>Canon BJC 610 (color, rendered)
  3919. <tr valign=top> <td>&nbsp;&nbsp;&nbsp;&nbsp;
  3920. <td><b><tt>bjc610a0.upp</tt></b>
  3921. <td>&nbsp;&nbsp;
  3922. <td>360&times;360dpi
  3923. <td>&nbsp;&nbsp;
  3924. <td>plain paper, high speed
  3925. <tr valign=top> <td>&nbsp;
  3926. <td><b><tt>bjc610a1.upp</tt></b>
  3927. <td>&nbsp;
  3928. <td>360&times;360dpi
  3929. <td>&nbsp;
  3930. <td>plain paper
  3931. <tr valign=top> <td>&nbsp;
  3932. <td><b><tt>bjc610a2.upp</tt></b>
  3933. <td>&nbsp;
  3934. <td>360&times;360dpi
  3935. <td>&nbsp;
  3936. <td>coated paper
  3937. <tr valign=top> <td>&nbsp;
  3938. <td><b><tt>bjc610a3.upp</tt></b>
  3939. <td>&nbsp;
  3940. <td>360&times;360dpi
  3941. <td>&nbsp;
  3942. <td>transparency film
  3943. <tr valign=top> <td>&nbsp;
  3944. <td><b><tt>bjc610a4.upp</tt></b>
  3945. <td>&nbsp;
  3946. <td>360&times;360dpi
  3947. <td>&nbsp;
  3948. <td>back print film
  3949. <tr valign=top> <td>&nbsp;
  3950. <td><b><tt>bjc610a5.upp</tt></b>
  3951. <td>&nbsp;
  3952. <td>360&times;360dpi
  3953. <td>&nbsp;
  3954. <td>fabric sheet
  3955. <tr valign=top> <td>&nbsp;
  3956. <td><b><tt>bjc610a6.upp</tt></b>
  3957. <td>&nbsp;
  3958. <td>360&times;360dpi
  3959. <td>&nbsp;
  3960. <td>glossy paper
  3961. <tr valign=top> <td>&nbsp;
  3962. <td><b><tt>bjc610a7.upp</tt></b>
  3963. <td>&nbsp;
  3964. <td>360&times;360dpi
  3965. <td>&nbsp;
  3966. <td>high gloss film
  3967. <tr valign=top> <td>&nbsp;
  3968. <td><b><tt>bjc610a8.upp</tt></b>
  3969. <td>&nbsp;
  3970. <td>360&times;360dpi
  3971. <td>&nbsp;
  3972. <td>high resolution paper
  3973. <tr> <td>&nbsp;
  3974. <tr valign=top> <td>&nbsp;
  3975. <td><b><tt>bjc610b1.upp</tt></b>
  3976. <td>&nbsp;
  3977. <td>720&times;720dpi
  3978. <td>&nbsp;
  3979. <td>plain paper
  3980. <tr valign=top> <td>&nbsp;
  3981. <td><b><tt>bjc610b2.upp</tt></b>
  3982. <td>&nbsp;
  3983. <td>720&times;720dpi
  3984. <td>&nbsp;
  3985. <td>coated paper
  3986. <tr valign=top> <td>&nbsp;
  3987. <td><b><tt>bjc610b3.upp</tt></b>
  3988. <td>&nbsp;
  3989. <td>720&times;720dpi
  3990. <td>&nbsp;
  3991. <td>transparency film
  3992. <tr valign=top> <td>&nbsp;
  3993. <td><b><tt>bjc610b4.upp</tt></b>
  3994. <td>&nbsp;
  3995. <td>720&times;720dpi
  3996. <td>&nbsp;
  3997. <td>back print film
  3998. <tr valign=top> <td>&nbsp;
  3999. <td><b><tt>bjc610b6.upp</tt></b>
  4000. <td>&nbsp;
  4001. <td>720&times;720dpi
  4002. <td>&nbsp;
  4003. <td>glossy paper
  4004. <tr valign=top> <td>&nbsp;
  4005. <td><b><tt>bjc610b7.upp</tt></b>
  4006. <td>&nbsp;
  4007. <td>720&times;720dpi
  4008. <td>&nbsp;
  4009. <td>high-gloss paper
  4010. <tr valign=top> <td>&nbsp;
  4011. <td><b><tt>bjc610b8.upp</tt></b>
  4012. <td>&nbsp;
  4013. <td>720&times;720dpi
  4014. <td>&nbsp;
  4015. <td>high resolution paper
  4016. <tr> <td>&nbsp;
  4017. <tr> <th align=left colspan=6>HP Ink-Printers
  4018. <tr valign=top> <td>&nbsp;
  4019. <td><b><tt>cdj550.upp</tt></b>
  4020. <td>&nbsp;
  4021. <td>300&times;300dpi
  4022. <td>&nbsp;
  4023. <td>32-bit CMYK
  4024. <tr valign=top> <td>&nbsp;
  4025. <td><b><tt>cdj690.upp</tt></b>
  4026. <td>&nbsp;
  4027. <td>300&times;300dpi
  4028. <td>&nbsp;
  4029. <td>Normal mode
  4030. <tr valign=top> <td>&nbsp;
  4031. <td><b><tt>cdj690ec.upp</tt></b>
  4032. <td>&nbsp;
  4033. <td>300&times;300dpi
  4034. <td>&nbsp;
  4035. <td>Economy mode
  4036. <tr valign=top> <td>&nbsp;
  4037. <td><b><tt>dnj750c.upp</tt></b>
  4038. <td>&nbsp;
  4039. <td>300&times;300dpi
  4040. <td>&nbsp;
  4041. <td>Color -- also good for 450C
  4042. <tr valign=top> <td>&nbsp;
  4043. <td><b><tt>dnj750m.upp</tt></b>
  4044. <td>&nbsp;
  4045. <td>600&times;600dpi
  4046. <td>&nbsp;
  4047. <td>Monochrome
  4048. <tr> <td>&nbsp;
  4049. <tr> <th align=left colspan=6>NEC P2X
  4050. <tr valign=top> <td>&nbsp;
  4051. <td><b><tt>necp2x.upp</tt></b>
  4052. <td>&nbsp;
  4053. <td>360&times;360dpi
  4054. <td>&nbsp;
  4055. <td>8-bit (Floyd-Steinberg)
  4056. <tr> <td>&nbsp;
  4057. <tr> <th align=left colspan=6>Any Epson Stylus Color
  4058. <tr valign=top> <td>&nbsp;
  4059. <td><b><tt>stcany.upp</tt></b>
  4060. <td>&nbsp;
  4061. <td>360&times;360dpi
  4062. <td>&nbsp;
  4063. <td>4-bit, PostScript halftoning
  4064. <tr valign=top> <td>&nbsp;
  4065. <td><b><tt>stcany_h.upp</tt></b>
  4066. <td>&nbsp;
  4067. <td>720&times;720dpi
  4068. <td>&nbsp;
  4069. <td>4-bit, PostScript halftoning
  4070. <tr> <td>&nbsp;
  4071. <tr> <th align=left colspan=6>Original Epson Stylus and Stylus Pro Color
  4072. <tr valign=top> <td>&nbsp;
  4073. <td><b><tt>stc.upp</tt></b>
  4074. <td>&nbsp;
  4075. <td>360&times;360dpi
  4076. <td>&nbsp;
  4077. <td>32-bit CMYK, 15-pin
  4078. <tr valign=top> <td>&nbsp;
  4079. <td><b><tt>stc_l.upp</tt></b>
  4080. <td>&nbsp;
  4081. <td>360&times;360dpi
  4082. <td>&nbsp;
  4083. <td>4-bit, PostScript halftoning, weaved noWeave
  4084. <tr valign=top> <td>&nbsp;
  4085. <td><b><tt>stc_h.upp</tt></b>
  4086. <td>&nbsp;
  4087. <td>720&times;720dpi
  4088. <td>&nbsp;
  4089. <td>32-bit CMYK, 15-pin Weave
  4090. <tr> <td>&nbsp;
  4091. <tr> <th align=left colspan=6>Epson Stylus Color II
  4092. <tr valign=top> <td>&nbsp;
  4093. <td><b><tt>stc2.upp</tt></b>
  4094. <td>&nbsp;
  4095. <td>360&times;360dpi
  4096. <td>&nbsp;
  4097. <td>32-bit CMYK, 20-pin, Epson Stylus Color II(s)
  4098. <tr valign=top> <td>&nbsp;
  4099. <td><b><tt>stc2_h.upp</tt></b>
  4100. <td>&nbsp;
  4101. <td>720&times;720dpi
  4102. <td>&nbsp;
  4103. <td>32-bit CMYK, 20-pin, Epson Stylus Color II
  4104. <tr valign=top> <td>&nbsp;
  4105. <td><b><tt>stc2s_h.upp</tt></b>
  4106. <td>&nbsp;
  4107. <td>720&times;720dpi
  4108. <td>&nbsp;
  4109. <td>32-bit CMYK, 20-pin, Epson Stylus Color IIs
  4110. <tr> <td>&nbsp;
  4111. <tr> <th align=left colspan=6>Epson Stylus Color 200
  4112. <tr valign=top> <td>&nbsp;
  4113. <td><b><tt>stc200.upp</tt></b>
  4114. <td>&nbsp;
  4115. <td>360&times;720dpi
  4116. <td>&nbsp;
  4117. <td>Plain Paper
  4118. <tr> <td>&nbsp;
  4119. <tr> <th align=left colspan=6>Epson Stylus Color 300
  4120. <tr valign=top> <td>&nbsp;
  4121. <td><b><tt>stc300.upp</tt></b>
  4122. <td>&nbsp;
  4123. <td>360&times;360dpi
  4124. <td>&nbsp;
  4125. <td>32-bit CMYK, plain paper
  4126. <tr valign=top> <td>&nbsp;
  4127. <td><b><tt>stc300bl.upp</tt></b>
  4128. <td>&nbsp;
  4129. <td>180&times;180dpi
  4130. <td>&nbsp;
  4131. <td>black only, plain paper
  4132. <tr valign=top> <td>&nbsp;
  4133. <td><b><tt>stc300bm.upp</tt></b>
  4134. <td>&nbsp;
  4135. <td>360&times;360dpi
  4136. <td>&nbsp;
  4137. <td>black only, plain paper
  4138. <tr> <td>&nbsp;
  4139. <tr> <th align=left colspan=6>Epson Stylus Color 500 (good transfer curves for plain paper)
  4140. <tr valign=top> <td>&nbsp;
  4141. <td><b><tt>stc500p.upp</tt></b>
  4142. <td>&nbsp;
  4143. <td>360&times;360dpi
  4144. <td>&nbsp;
  4145. <td>32-bit CMYK, noWeave, plain paper
  4146. <tr valign=top> <td>&nbsp;
  4147. <td><b><tt>stc500ph.upp</tt></b>
  4148. <td>&nbsp;
  4149. <td>720&times;720dpi
  4150. <td>&nbsp;
  4151. <td>32-bit CMYK, noWeave, plain paper
  4152. <tr> <td>&nbsp;
  4153. <tr> <th align=left colspan=6>Epson Stylus Color 600, 32/90-inch weaving
  4154. <tr valign=top> <td>&nbsp;
  4155. <td><b><tt>stc600pl.upp</tt></b>
  4156. <td>&nbsp;
  4157. <td>360&times;360dpi
  4158. <td>&nbsp;
  4159. <td>32-bit CMYK, 32-pin, plain paper
  4160. <tr valign=top> <td>&nbsp;
  4161. <td><b><tt>stc600p.upp</tt></b>
  4162. <td>&nbsp;
  4163. <td>720&times;720dpi
  4164. <td>&nbsp;
  4165. <td>32-bit CMYK, 32-pin, plain paper
  4166. <tr valign=top> <td>&nbsp;
  4167. <td><b><tt>stc600ih.upp</tt></b>
  4168. <td>&nbsp;
  4169. <td>1440&times;720dpi
  4170. <td>&nbsp;
  4171. <td>32-bit CMYK, 30-pin, inkjet paper
  4172. <tr> <td>&nbsp;
  4173. <tr> <th align=left colspan=6>Epson Stylus Color 640
  4174. <tr valign=top> <td>&nbsp;
  4175. <td><b><tt>stc640p.upp</tt></b>
  4176. <td>&nbsp;
  4177. <td>720&times;720dpi
  4178. <td>&nbsp;
  4179. <td>plain paper?
  4180. <tr valign=top> <td>&nbsp;
  4181. <td><b><tt>st640p.upp</tt></b>
  4182. <td>&nbsp;
  4183. <td>720&times;720dpi
  4184. <td>&nbsp;
  4185. <td>CMYK, plain paper
  4186. <tr valign=top> <td>&nbsp;
  4187. <td><b><tt>st640pg.upp</tt></b>
  4188. <td>&nbsp;
  4189. <td>720&times;720dpi
  4190. <td>&nbsp;
  4191. <td>grayscale, plain paper
  4192. <tr valign=top> <td>&nbsp;
  4193. <td><b><tt>st640pl.upp</tt></b>
  4194. <td>&nbsp;
  4195. <td>360&times;360dpi
  4196. <td>&nbsp;
  4197. <td>CMYK, plain paper
  4198. <tr valign=top> <td>&nbsp;
  4199. <td><b><tt>st640plg.upp</tt></b>
  4200. <td>&nbsp;
  4201. <td>360&times;360dpi
  4202. <td>&nbsp;
  4203. <td>grayscale, plain paper
  4204. <tr valign=top> <td>&nbsp;
  4205. <td><b><tt>st640ih.upp</tt></b>
  4206. <td>&nbsp;
  4207. <td>1440&times;720dpi
  4208. <td>&nbsp;
  4209. <td>CMYK, inkjet paper
  4210. <tr valign=top> <td>&nbsp;
  4211. <td><b><tt>st640ihg.upp</tt></b>
  4212. <td>&nbsp;
  4213. <td>1440&times;720dpi
  4214. <td>&nbsp;
  4215. <td>grayscale, inkjet paper
  4216. <tr> <td>&nbsp;
  4217. <tr> <th align=left colspan=6>Epson Stylus Color 800, 64/180-inch weaving
  4218. <tr valign=top> <td>&nbsp;
  4219. <td><b><tt>stc800pl.upp</tt></b>
  4220. <td>&nbsp;
  4221. <td>360&times;360dpi
  4222. <td>&nbsp;
  4223. <td>32-bit CMYK, 64-pin, plain paper
  4224. <tr valign=top> <td>&nbsp;
  4225. <td><b><tt>stc800p.upp</tt></b>
  4226. <td>&nbsp;
  4227. <td>720&times;720dpi
  4228. <td>&nbsp;
  4229. <td>32-bit CMYK, 64-pin, plain paper
  4230. <tr valign=top> <td>&nbsp;
  4231. <td><b><tt>stc800ih.upp</tt></b>
  4232. <td>&nbsp;
  4233. <td>1440&times;720dpi
  4234. <td>&nbsp;
  4235. <td>32-bit CMYK, 62-pin, inkjet paper
  4236. <tr valign=top> <td>&nbsp;
  4237. <td><b><tt>stc1520.upp</tt></b>
  4238. <td>&nbsp;
  4239. <td>1440&times;720dpi
  4240. <td>&nbsp;
  4241. <td>32-bit CMYK, 62-pin, inkjet paper
  4242. <tr> <td>&nbsp;
  4243. <tr> <th align=left colspan=6>Sun raster file
  4244. <tr valign=top> <td>&nbsp;
  4245. <td><b><tt>ras1.upp</tt></b>
  4246. <td>&nbsp;
  4247. <td>1-bit
  4248. <td>&nbsp;
  4249. <td>monochrome (Ghostscript)
  4250. <tr valign=top> <td>&nbsp;
  4251. <td><b><tt>ras3.upp</tt></b>
  4252. <td>&nbsp;
  4253. <td>3-bit
  4254. <td>&nbsp;
  4255. <td>RGB (Ghostscript)
  4256. <tr valign=top> <td>&nbsp;
  4257. <td><b><tt>ras4.upp</tt></b>
  4258. <td>&nbsp;
  4259. <td>4-bit
  4260. <td>&nbsp;
  4261. <td>CMYK (Ghostscript)
  4262. <tr valign=top> <td>&nbsp;
  4263. <td><b><tt>ras8m.upp</tt></b>
  4264. <td>&nbsp;
  4265. <td>8-bit
  4266. <td>&nbsp;
  4267. <td>grayscale (Floyd-Steinberg)
  4268. <tr valign=top> <td>&nbsp;
  4269. <td><b><tt>ras24.upp</tt></b>
  4270. <td>&nbsp;
  4271. <td>24-bit
  4272. <td>&nbsp;
  4273. <td>RGB (Floyd-Steinberg)
  4274. <tr valign=top> <td>&nbsp;
  4275. <td><b><tt>ras32.upp</tt></b>
  4276. <td>&nbsp;
  4277. <td>32-bit
  4278. <td>&nbsp;
  4279. <td>CMYK (CMYK-Floyd-Steinberg)
  4280. </table></blockquote>
  4281. <p>
  4282. Thanks to Danilo Beuche, Guido Classen, Mark Goldberg and Hans-Heinrich
  4283. Viehmann for providing the files for the stc200, hp690, stc500 and the
  4284. stc640. Thanks to Michael Lossin &lt;losse@germanymail.com&gt; for the
  4285. newer st640 parameter sets.
  4286. <p>
  4287. Please note the following:
  4288. <blockquote><ul>
  4289. <li>Changing the resolution with Ghostscript's
  4290. <a href="Use.htm#Resolution_switch"><b><tt>-r</tt></b> switch</a> is
  4291. usually not possible.
  4292. <li>For Epson Stylus Color models not listed above, the two
  4293. <b><tt>stc500</tt></b> variants are likely to work in addition to
  4294. <b><tt>stcany</tt></b>, but their gamma correction might be wrong.
  4295. </ul></blockquote>
  4296. <h3><a name="Uni_state"></a>The state of this driver</h3>
  4297. <p>
  4298. The coding of <b><tt>uniprint</tt></b> was triggered by the requirements of
  4299. the various Stylus Color models and some personal needs for HP and NEC
  4300. drivers. Thus the Epson models are well represented among the distributed
  4301. parameter files. When this driver entered the beta test phase, three other
  4302. drivers appreared on the scene that could be at least partially integrated
  4303. into <b><tt>uniprint</tt></b>: <b><tt>cdj850</tt></b> by Uli Wortmann
  4304. (available at <a href="http://www.erdw.ethz.ch/~bonk/hp850/hp850.html">http://www.erdw.ethz.ch/~bonk/hp850/hp850.html</a>),
  4305. <b><tt>hpdj</tt></b> by Martin Lottermoser, and <b><tt>bjc610</tt></b> by
  4306. Helmut Riegler.
  4307. <p>
  4308. Uli addresses features of the more recent DeskJet models that will not be
  4309. available in <b><tt>uniprint</tt></b> soon. Martin taught me a lesson on
  4310. HP-PCL3 headers that will be available in <b><tt>uniprint</tt></b>
  4311. soon. Helmut in turn followed an almost similar idea, but targetted
  4312. primarily for printing on Canon printers from the pbmplus library. Starting
  4313. with version 1.68 of uniprint, BJC support is available. Work on the
  4314. <b><tt>hpdj</tt></b> integration will start after the update of my website.
  4315. <h3><a name="Uni_background"></a>Notes on <b><tt>uniprint</tt></b>'s background</h3>
  4316. <p>
  4317. <b><tt>uniprint</tt></b> is actually an update of <b><tt>stcolor</tt></b>,
  4318. but much more versatile than its predecessor; <b><tt>stcolor</tt></b>, in
  4319. its turn, started as a clone of the color DeskJet family of drivers
  4320. (<b><tt>cdj</tt></b>*). Finally, <b><tt>cdj</tt></b>* can be considered an
  4321. addition of features to the simpler monochrome drivers of Ghostscript. This
  4322. addition of features is useful to get an idea of the functionality of
  4323. <b><tt>uniprint</tt></b>:
  4324. <blockquote>
  4325. <dl>
  4326. <dt>Monochrome to advanced color (<b><tt>cdj</tt></b>*):
  4327. <dd>This adds color mapping and rendering functions to the driver.
  4328. Error diffusion is especially important for the quality of printing.
  4329. </dl>
  4330. <dl>
  4331. <dt>HP color to Epson Color (<b><tt>stcolor</tt></b>)
  4332. <dd>The Epson Stylus Color offered two features simultaneously: it could
  4333. produce 720&times;720dpi output and it could soak the paper. In other
  4334. words, it required more color management features inside the driver. This
  4335. is still the major conceptual difference in the data generation for HP and
  4336. Epson printers.
  4337. </dl>
  4338. <dl>
  4339. <dt>Weaving techniques (<b><tt>stcolor</tt></b>)
  4340. <dd>Besides the internal color management, the Stylus Color did not provide
  4341. enough buffer space to operate the printer fast at 720&times;720dpi. The
  4342. use of weaving could yield triple the print speed. Weaving, also called
  4343. interleaving, is present in some monochrome drivers too. The new thing in
  4344. <b><tt>stcolor</tt></b> was the combination with error diffusion.
  4345. Unfortunately the weaving was somehow hard-coded, as the problems with the
  4346. newer members of the Stylus Color family of printers demonstrated.
  4347. </dl>
  4348. <dl>
  4349. <dt>Generalized output format and weaving (<b><tt>uniprint</tt></b>)
  4350. <dd>The features mentioned above yield about 90% of
  4351. <b><tt>stcolor</tt></b>'s source code; only 10% is related to the
  4352. formatting of the output. The idea to make the output format switchable
  4353. came up soon after completing <b><tt>stcolor</tt></b>, but its final design
  4354. was triggered by the (personal) necessity to drive a NEC P2X and a
  4355. Designjet 750c.
  4356. </dl></blockquote>
  4357. <p>
  4358. Thus <b><tt>uniprint</tt></b> accumulates almost any features that can be
  4359. found among the other printer drivers, which clearly has some disadvantage
  4360. in processing speed -- true in particular of version 1.75, since it was
  4361. targetted for functionality, and several speed-gaining features were
  4362. (knowingly) omitted.
  4363. <p>
  4364. To summarize and to introduce the terms used in the description of the
  4365. parameters, the features of <b><tt>uniprint</tt></b> that can be
  4366. parameterized are:
  4367. <blockquote><ul>
  4368. <li>color mapping,
  4369. <li>color rendering (error diffusion or Floyd-Steinberg),
  4370. <li>output format, including
  4371. <li>weaving.
  4372. </ul></blockquote>
  4373. <h3><a name="Uni_make_pfile"></a>Godzilla's guide to the creation of Unified Printer Parameter (<b><tt>.upp</tt></b>) files</h3>
  4374. <p>
  4375. Here is one of the distributed parameter files (<b><tt>stc_l.upp</tt></b>)
  4376. with some added comments. Also see the section that describes
  4377. <a href="#Uni_all_parameters">all <b><tt>uniprint</tt></b>'s parameters in
  4378. brief</a>.
  4379. <pre>
  4380. -supModel="Epson Stylus Color I (and PRO Series), 360x360DpI, noWeave"
  4381. -sDEVICE=uniprint -- Select the driver
  4382. -dNOPAUSE -- Useful with printers
  4383. -dSAFER -- Provides some security
  4384. -dupColorModel=/DeviceCMYK -- Selects the color mapping
  4385. -dupRendering=/ErrorDiffusion -- Selects the color rendering
  4386. -dupOutputFormat=/EscP2 -- Selects the output format
  4387. -r360x360 -- Adjusts the resolution
  4388. -dupMargins="{ 9.0 39.96 9.0 9.0}" -- Establishes (L/B/R/T margins in points)
  4389. -dupComponentBits="{1 1 1 1}" -- Map: bits per component (default: 8)
  4390. -dupWeaveYPasses=4 -- Weave: Y-passes (default: 1)
  4391. -dupOutputPins=15 -- Format/weave: scans per Command
  4392. -dupBeginPageCommand="&lt; -- Goes to the printer
  4393. 1b40 1b40 -- ESC '@' ESC '@' -&gt; dual reset
  4394. 1b2847 0100 01 -- ESC '(' 'G' 1 0 1 -&gt; graphics
  4395. 1b2869 0100 00 -- ESC '(' 'i' 1 0 1 -&gt; no HW weave
  4396. 1b2855 0100 0A -- ESC '(' 'U' 1 0 10 -&gt; 360dpi
  4397. 1b5500 -- ESC 'U' 0 -&gt; bidir print
  4398. 1b2843 0200 0000 -- ESC '(' 'C' 2 0 xx -&gt; page length
  4399. 1b2863 0400 0000 0000 -- ESC '(' 'c' 4 0 xxxx -&gt; margins
  4400. &gt;" -- as it is, unless:
  4401. -dupAdjustPageLengthCommand -- Adjust page length in BOP requested
  4402. -dupAdjustTopMarginCommand -- Adjust top margin in BOP
  4403. -dupAdjustBottomMarginCommand -- Adjust bottom margin in BOP
  4404. -dupEndPageCommand="(\033@\014)" -- Last (but one) data to the printer
  4405. -dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
  4406. </pre>
  4407. <p>
  4408. That's short, and if one removes <b><tt>upWeaveYPasses</tt></b> and
  4409. <b><tt>upOutputPins</tt></b> it becomes shorter, almost
  4410. <b><tt>stcany.upp</tt></b>. This miniature size is because I am most
  4411. familiar with ESC/P2, and was able to add defaults for the omitted
  4412. parameters. Now a few notes about the parameters used in this example:
  4413. <ul>
  4414. <li><b><tt>upModel</tt></b> is a string serving as a comment (and nothing else).
  4415. <li><a href="Use.htm#Output_device"><b><tt>DEVICE</tt></b></a>,
  4416. <a href="Use.htm#NoPause"><b><tt>NOPAUSE</tt></b></a>, <a
  4417. href="Use.htm#Safer"><b><tt>SAFER</tt></b></a> are well-known Ghostscript
  4418. parameters described in the <a href="Use.htm">usage documentation</a>.
  4419. <li><b><tt>upColorModel</tt></b> is one of major <b><tt>uniprint</tt></b>
  4420. parameters: it selects the color mapping and in turn the PostScript color
  4421. model. It supports the devices <b><tt>/DeviceGray</tt></b>, <b><tt>/DeviceRGBW</tt></b>, <b><tt>/DeviceRGB</tt></b>, <b><tt>/DeviceCMYK</tt></b>, and <b><tt>/DeviceCMYKgenerate</tt></b>.
  4422. <li><b><tt>upRendering</tt></b> selects the (color) rendering, supporting
  4423. the values <b><tt>/ErrorDiffusion</tt></b> and <b><tt>/FSCMYK32</tt></b>.
  4424. <b><tt>/ErrorDiffusion</tt></b> is similar to <b><tt>fsmono</tt></b>,
  4425. <b><tt>fsrgb</tt></b> and <b><tt>fsx4</tt></b> of <b><tt>stcolor</tt></b>,
  4426. while <b><tt>/FSCMYK32</tt></b> is (almost) identical to
  4427. <b><tt>fscmyk</tt></b> and <b><tt>hscmyk</tt></b>, but is restricted to
  4428. 32-bit data and should be used in conjunction with
  4429. <b><tt>/DeviceCMYKgenerate</tt></b>.
  4430. <li><b><tt>upOutputFormat</tt></b> selects the output method, supporting the values
  4431. <b><tt>/SunRaster</tt></b>, <b><tt>/Epson</tt></b>, <b><tt>/EscP2</tt></b>, <b><tt>/EscP2XY</tt></b>, and<b><tt>/Pcl</tt></b>.
  4432. <blockquote><table cellpadding=0 cellspacing=0>
  4433. <tr valign=top> <td><b><tt>/SunRaster</tt></b>
  4434. <td>&nbsp;
  4435. <td>creates Sun raster files and requires no other parameters
  4436. <tr valign=top> <td><b><tt>/Epson</tt></b>
  4437. <td>&nbsp;
  4438. <td>is used for the elderly ESC/P format (used by many printers)
  4439. <tr valign=top> <td><b><tt>/EscP2</tt></b>
  4440. <td>&nbsp;
  4441. <td>is used by more recent Epson printers (no X weaving supported)
  4442. <tr valign=top> <td><b><tt>/EscP2XY</tt></b>
  4443. <td>&nbsp;
  4444. <td>supports X-Weaving, used with 1440dpi printers and in <b><tt>stc2s_h</tt></b>
  4445. <tr valign=top> <td><b><tt>/Pcl</tt></b>
  4446. <td>&nbsp;
  4447. <td>HP PCL/RTL-style output formatter without weaving
  4448. </table></blockquote>
  4449. <li><b><tt>-r360x360</tt></b> is Ghostscript's standard
  4450. <a href="Use.htm#Resolution_switch">resolution switch</a>.
  4451. <li><b><tt>upMargins="{&nbsp;9.0&nbsp;39.96&nbsp;9.0&nbsp;9.0}"</tt></b>
  4452. has function similar to the Ghostscript parameter
  4453. <b><tt>.HWMargins</tt></b>: it sets the left, bottom, right, and top
  4454. margins in points. <b><tt>uniprint</tt></b> provides this parameter to
  4455. enable automatic left-right exchange if <b><tt>upYFlip</tt></b> is active.
  4456. <li><b><tt>upComponentBits</tt></b> is an array of integers that selects
  4457. the bits stored in raster memory, by default 8 bits per component. In this
  4458. example, 1 bit is selected for each component, thus turning down the
  4459. Floyd-Steinberg algorithm (but still carrying out the time-consuming
  4460. computation). The related parameter "<b><tt>upComponentShift</tt></b>"
  4461. controls positioning the components within raster memory. Each of the
  4462. numbers given corresponds to a component which depends on the selected
  4463. "<b><tt>upColorModel</tt></b>":
  4464. <blockquote><table cellpadding=0 cellspacing=0>
  4465. <tr valign=top> <td align=center>&nbsp;
  4466. <td>&nbsp;
  4467. <td align=center><b><tt>/DeviceGray</tt></b>
  4468. <td>&nbsp;
  4469. <td align=center><b><tt>/DeviceRGBW</tt></b>
  4470. <td>&nbsp;
  4471. <td align=center><b><tt>/DeviceRGB</tt></b>
  4472. <td>&nbsp;
  4473. <td align=center><b><tt>/DeviceCMYK</tt></b>
  4474. <td>&nbsp;
  4475. <td align=center><b><tt>/DeviceCMYKgenerate</tt></b>
  4476. <tr> <td colspan=11><hr>
  4477. <tr valign=top> <td align=center>0
  4478. <td>&nbsp;
  4479. <td align=center>White
  4480. <td>&nbsp;
  4481. <td align=center>White
  4482. <td>&nbsp;
  4483. <td align=center>Red
  4484. <td>&nbsp;
  4485. <td align=center>Black
  4486. <td>&nbsp;
  4487. <td align=center>Black
  4488. <tr valign=top> <td align=center>1
  4489. <td>&nbsp;
  4490. <td align=center>--
  4491. <td>&nbsp;
  4492. <td align=center>Red
  4493. <td>&nbsp;
  4494. <td align=center>Green
  4495. <td>&nbsp;
  4496. <td align=center>Cyan
  4497. <td>&nbsp;
  4498. <td align=center>Cyan
  4499. <tr valign=top> <td align=center>2
  4500. <td>&nbsp;
  4501. <td align=center>--
  4502. <td>&nbsp;
  4503. <td align=center>Green
  4504. <td>&nbsp;
  4505. <td align=center>Blue
  4506. <td>&nbsp;
  4507. <td align=center>Magenta
  4508. <td>&nbsp;
  4509. <td align=center>Magenta
  4510. <tr valign=top> <td align=center>3
  4511. <td>&nbsp;
  4512. <td align=center>--
  4513. <td>&nbsp;
  4514. <td align=center>Blue
  4515. <td>&nbsp;
  4516. <td align=center>--
  4517. <td>&nbsp;
  4518. <td align=center>Yellow
  4519. <td>&nbsp;
  4520. <td align=center>Yellow
  4521. </table>
  4522. <p>
  4523. This order may not be suitable for some printers, so another parameter
  4524. "<b><tt>upOutputComponentOrder</tt></b>", also an array of integers,
  4525. selects the output order using the numbers on the left.
  4526. </blockquote>
  4527. <p>
  4528. One group of very important parameters not used in the example above
  4529. deserves to be mentioned here: the transfer arrays, named
  4530. "<b><tt>up</tt><em>{color}</em><tt>Transfer</tt></b>", where
  4531. <b><em>{color}</em></b> is one of the names in the table above. These are
  4532. arrays of floats in the range 0.0 - 1.0 representing the color transfer
  4533. functions. They are used during mapping and rendering. In the simplest
  4534. case, these arrays ensure an equidistant distribution of the stored values
  4535. within the device space (which means a nonlinear mapping from Ghostscript's
  4536. point of view). If the given array does not cover the entire range from 0
  4537. to 1, which applies for the Stylus Color family at high resolution for some
  4538. media, only the relevant part gets mapped to raster memory (meaning that
  4539. is's fully utilized) and the rendering takes care of the "overhang" (in
  4540. this case the post-diffusion of 1-bit components makes sense).
  4541. <p>
  4542. Finally an important note on the transfer arrays: for monochrome devices
  4543. the stored component is <b><tt>White</tt></b>, which is the way PostScript
  4544. defines these devices, but most printers require <b><tt>Black</tt></b>.
  4545. Thus one has to provide a falling "<b><tt>upWhiteTransfer</tt></b>" for
  4546. such printers.
  4547. <li><b><tt>upWeaveYPasses</tt></b> is an integer that gives the number of
  4548. print head passes required to achieve the requested Ydpi. This makes sense
  4549. only if
  4550. <li><b><tt>upOutputPins</tt></b> is set to something greater than 1. Thus
  4551. multiple pins or nozzles are transferred with a single command, and of
  4552. course such a command must be supported by the device.
  4553. </ul>
  4554. <p>
  4555. If no other weave parameters are given, <b><tt>uniprint</tt></b> computes
  4556. several defaults which together do no weaving. The <b><tt>/Epson</tt></b>
  4557. and <b><tt>/EscP2XY</tt></b> formats take care of
  4558. "<b><tt>upWeaveXPasses</tt></b>" too.
  4559. <ul>
  4560. <li><b><tt>upBeginPageCommand</tt></b> represents the data transferred to
  4561. the printer whenever a new page begins. Before that,
  4562. "<b><tt>upBeginJobCommand</tt></b>" is written to the device only once per
  4563. output file. (Intended for the HP PJL sequences).
  4564. <li><b><tt>upAdjustBottomMarginCommand</tt></b>,
  4565. <b><tt>upAdjustMediaSize</tt></b>,
  4566. <b><tt>upAdjustPageLengthCommand</tt></b>,
  4567. <b><tt>upAdjustPageWidthCommand</tt></b>,
  4568. <b><tt>upAdjustResolutionCommand</tt></b>, and
  4569. <b><tt>upAdjustTopMarginCommand</tt></b>
  4570. <p>
  4571. Normally <b><tt>uniprint</tt></b> does not change the
  4572. "<b><tt>upBeginPageCommand</tt></b>", nor does it provide a default.
  4573. However, if the above boolean values are set, the corresponding values are
  4574. changed (provided that the code of the formatters supports this change and
  4575. the commands to be adjusted are included in the BOP string).
  4576. <li><b><tt>upEndPageCommand</tt></b> is the fixed termination sequence for
  4577. each page, and of course there is an "<b><tt>upEndJobCommand</tt></b>" too.
  4578. <li><b><tt>upAbortCommand</tt></b> is written if <b><tt>uniprint</tt></b>'s
  4579. interrupt detection is enabled and a signal is caught. It replaces
  4580. "<b><tt>upEndPageCommand</tt></b>" and "<b><tt>upEndJobCommand</tt></b>",
  4581. thus allowing the indication of an aborted job. (Ghostscript gets an error
  4582. return from <b><tt>uniprint</tt></b> in this case, and abandons further
  4583. processing.)
  4584. </ul>
  4585. <p>
  4586. For the ESC/P(2) formats all commands represent binary data, while for
  4587. the PCL/RTL formatter some of them are formats for <b><tt>fprintf</tt></b>. These strings
  4588. <b><em>must</em></b> explicitly have a trailing "\0'.
  4589. <p>
  4590. I should write more, but the only recommendation is to
  4591. take a look at the various parameter files. Here are a few more hints.
  4592. <ul>
  4593. <li>If the Driver rejects a configuration, nothing happens until
  4594. <b><tt>showpage</tt></b>; then an error is raised and a message with
  4595. "CALL-REJECTED upd_print_page..." is printed on stderr.
  4596. <li><b><tt>uniprint</tt></b> has lots of messages that can be activated by
  4597. setting bits in the preprocessor macro <b><tt>UPD_MESSAGES</tt></b>. I
  4598. usually use the compile-time option <b><tt>-DUPD_MESSAGES=0x17</tt></b> for
  4599. configuration development. (For the semantics, check the
  4600. <b><tt>UPD_M_</tt></b> macros in the source.)
  4601. <li>A program "<b><tt>uninfo.ps</tt></b>" distributed with Ghostscript
  4602. displays interactively in alphabetical order the contents of the current
  4603. pagedevice dictionary. This includes any parameters generated or changed by
  4604. <b><tt>uniprint</tt></b>.
  4605. </ul>
  4606. <h3><a name="Uni_all_parameters"></a>All parameters in brief</h3>
  4607. <p>
  4608. This table gives a brief explanation of every parameter known to
  4609. <b><tt>uniprint</tt></b>, listing them in alphabetical order. "[&nbsp;]"
  4610. denotes that a parameter is an array, and "(RO)" that it is read-only.
  4611. <blockquote><table cellpadding=0 cellspacing=0>
  4612. <tr><th colspan=5 bgcolor="#CCCC00"><hr><font size="+1">All <b><tt>uniprint</tt></b> parameters</font><hr>
  4613. <tr valign=bottom>
  4614. <th align=left>Parameter
  4615. <td>&nbsp;
  4616. <th align=left>Type
  4617. <td>&nbsp;&nbsp;&nbsp;
  4618. <th align=left>Use
  4619. <tr> <td colspan=5><hr>
  4620. <tr valign=top> <td><b><tt>upAbortCommand</tt></b>
  4621. <td>&nbsp;
  4622. <td>String
  4623. <td>&nbsp;
  4624. <td>End of page and file on interrupt
  4625. <tr valign=top> <td><b><tt>upAdjustBottomMarginCommand</tt></b>
  4626. <td>&nbsp;
  4627. <td>Bool
  4628. <td>&nbsp;
  4629. <td>Manipulate bottom margin in <b><tt>upBeginPageCommand</tt></b>
  4630. <tr valign=top> <td><b><tt>upAdjustMediaSizeCommand</tt></b>
  4631. <td>&nbsp;
  4632. <td>Bool
  4633. <td>&nbsp;
  4634. <td>Manipulate <b><tt>Mediasize</tt></b> [intended]
  4635. <tr valign=top> <td><b><tt>upAdjustPageLengthCommand</tt></b>
  4636. <td>&nbsp;
  4637. <td>Bool
  4638. <td>&nbsp;
  4639. <td>Manipulate page length in <b><tt>upBeginPageCommand</tt></b>
  4640. <tr valign=top> <td><b><tt>upAdjustPageWidthCommand</tt></b>
  4641. <td>&nbsp;
  4642. <td>Bool
  4643. <td>&nbsp;
  4644. <td>Manipulate page width in <b><tt>upBeginPageCommand</tt></b>
  4645. <tr valign=top> <td><b><tt>upAdjustResolutionCommand</tt></b>
  4646. <td>&nbsp;
  4647. <td>Bool
  4648. <td>&nbsp;
  4649. <td>Manipulate resolution
  4650. <tr valign=top> <td><b><tt>upAdjustTopMarginCommand</tt></b>
  4651. <td>&nbsp;
  4652. <td>Bool
  4653. <td>&nbsp;
  4654. <td>Manipulate top margin in <b><tt>upBeginPageCommand</tt></b>
  4655. <tr valign=top> <td><b><tt>upBeginJobCommand</tt></b>
  4656. <td>&nbsp;
  4657. <td>String
  4658. <td>&nbsp;
  4659. <td>Begin each output file
  4660. <tr valign=top> <td><b><tt>upBeginPageCommand</tt></b>
  4661. <td>&nbsp;
  4662. <td>String
  4663. <td>&nbsp;
  4664. <td>Begin each page
  4665. <tr valign=top> <td><b><tt>upBlackTransfer</tt></b>
  4666. <td>&nbsp;
  4667. <td>Float[&nbsp;]
  4668. <td>&nbsp;
  4669. <td>Black transfer (CMYK only!)
  4670. <tr valign=top> <td><b><tt>upBlueTransfer</tt></b>
  4671. <td>&nbsp;
  4672. <td>Float[&nbsp;]
  4673. <td>&nbsp;
  4674. <td>Blue transfer
  4675. <tr valign=top> <td><b><tt>upColorInfo</tt></b>
  4676. <td>&nbsp;
  4677. <td>Int[&nbsp;]
  4678. <td>&nbsp;
  4679. <td>struct <b><tt>gx_device_color_info</tt></b>
  4680. <tr valign=top> <td><b><tt>upColorModel</tt></b>
  4681. <td>&nbsp;
  4682. <td>Name
  4683. <td>&nbsp;
  4684. <td>Select color mapping
  4685. <tr valign=top> <td><b><tt>upColorModelInitialized</tt></b>
  4686. <td>&nbsp;
  4687. <td>Bool (RO)
  4688. <td>&nbsp;
  4689. <td>Color mapping OK
  4690. <tr valign=top> <td><b><tt>upComponentBits</tt></b>
  4691. <td>&nbsp;
  4692. <td>Int[&nbsp;]
  4693. <td>&nbsp;
  4694. <td>Bits stored per component
  4695. <tr valign=top> <td><b><tt>upComponentShift</tt></b>
  4696. <td>&nbsp;
  4697. <td>Int[&nbsp;]
  4698. <td>&nbsp;
  4699. <td>Positioning within <b><tt>gx_color_index</tt></b>
  4700. <tr valign=top> <td><b><tt>upCyanTransfer</tt></b>
  4701. <td>&nbsp;
  4702. <td>Float[&nbsp;]
  4703. <td>&nbsp;
  4704. <td>Cyan transfer
  4705. <tr valign=top> <td><b><tt>upEndJobCommand</tt></b>
  4706. <td>&nbsp;
  4707. <td>String
  4708. <td>&nbsp;
  4709. <td>End each file unless <b><tt>upAbortCommand</tt></b>
  4710. <tr valign=top> <td><b><tt>upEndPageCommand</tt></b>
  4711. <td>&nbsp;
  4712. <td>String
  4713. <td>&nbsp;
  4714. <td>End each page unless <b><tt>upAbortCommand</tt></b>
  4715. <tr valign=top> <td><b><tt>upErrorDetected</tt></b>
  4716. <td>&nbsp;
  4717. <td>Bool (RO)
  4718. <td>&nbsp;
  4719. <td>Severe (VM) error, not fully operational
  4720. <tr valign=top> <td><b><tt>upFSFixedDirection</tt></b>
  4721. <td>&nbsp;
  4722. <td>Bool
  4723. <td>&nbsp;
  4724. <td>Inhbits direction toggling in rendering
  4725. <tr valign=top> <td><b><tt>upFSProcessWhiteSpace</tt></b>
  4726. <td>&nbsp;
  4727. <td>Bool
  4728. <td>&nbsp;
  4729. <td>Causes white-space rendering
  4730. <tr valign=top> <td><b><tt>upFSReverseDirection</tt></b>
  4731. <td>&nbsp;
  4732. <td>Bool
  4733. <td>&nbsp;
  4734. <td>Run rendering in reverse (if fixed)
  4735. <tr valign=top> <td><b><tt>upFSZeroInit</tt></b>
  4736. <td>&nbsp;
  4737. <td>Bool
  4738. <td>&nbsp;
  4739. <td>Non-random rendering initialization
  4740. <tr valign=top> <td><b><tt>upFormatXabsolute</tt></b>
  4741. <td>&nbsp;
  4742. <td>Bool
  4743. <td>&nbsp;
  4744. <td>Write absolute X coordinates
  4745. <tr valign=top> <td><b><tt>upFormatYabsolute</tt></b>
  4746. <td>&nbsp;
  4747. <td>Bool
  4748. <td>&nbsp;
  4749. <td>Write absolute Y coordinates
  4750. <tr valign=top> <td><b><tt>upGreenTransfer</tt></b>
  4751. <td>&nbsp;
  4752. <td>Float[&nbsp;]
  4753. <td>&nbsp;
  4754. <td>Green transfer
  4755. <tr valign=top> <td><b><tt>upMagentaTransfer</tt></b>
  4756. <td>&nbsp;
  4757. <td>Float[&nbsp;]
  4758. <td>&nbsp;
  4759. <td>Magenta transfer
  4760. <tr valign=top> <td><b><tt>upMargins</tt></b>
  4761. <td>&nbsp;
  4762. <td>Float[&nbsp;]
  4763. <td>&nbsp;
  4764. <td>L/B/R/T margins in points
  4765. <tr valign=top> <td><b><tt>upModel</tt></b>
  4766. <td>&nbsp;
  4767. <td>String
  4768. <td>&nbsp;
  4769. <td>Comment string, holds some info
  4770. <tr valign=top> <td><b><tt>upOutputAborted</tt></b>
  4771. <td>&nbsp;
  4772. <td>Bool (RO)
  4773. <td>&nbsp;
  4774. <td>Caught an interrupt
  4775. <tr valign=top> <td><b><tt>upOutputBuffers</tt></b>
  4776. <td>&nbsp;
  4777. <td>Int
  4778. <td>&nbsp;
  4779. <td>Number of rendering buffers (2^<small><sup><b>N</b></sup></small>)
  4780. <tr valign=top> <td><b><tt>upOutputComponentOrder</tt></b>
  4781. <td>&nbsp;
  4782. <td>Int[&nbsp;]
  4783. <td>&nbsp;
  4784. <td>Order of components when printing
  4785. <tr valign=top> <td><b><tt>upOutputComponents</tt></b>
  4786. <td>&nbsp;
  4787. <td>Int
  4788. <td>&nbsp;
  4789. <td>Number of written components, not fully operational
  4790. <tr valign=top> <td><b><tt>upOutputFormat</tt></b>
  4791. <td>&nbsp;
  4792. <td>Name
  4793. <td>&nbsp;
  4794. <td>Select output format
  4795. <tr valign=top> <td><b><tt>upOutputFormatInitialized</tt></b>
  4796. <td>&nbsp;
  4797. <td>Bool (RO)
  4798. <td>&nbsp;
  4799. <td>Format data OK
  4800. <tr valign=top> <td><b><tt>upOutputHeight</tt></b>
  4801. <td>&nbsp;
  4802. <td>Int
  4803. <td>&nbsp;
  4804. <td>Output height in pixels
  4805. <tr valign=top> <td><b><tt>upOutputPins</tt></b>
  4806. <td>&nbsp;
  4807. <td>Int
  4808. <td>&nbsp;
  4809. <td>Number of pins / nozzles per command
  4810. <tr valign=top> <td><b><tt>upOutputWidth</tt></b>
  4811. <td>&nbsp;
  4812. <td>Int
  4813. <td>&nbsp;
  4814. <td>Output width in pixels
  4815. <tr valign=top> <td><b><tt>upOutputXOffset</tt></b>
  4816. <td>&nbsp;
  4817. <td>Int
  4818. <td>&nbsp;
  4819. <td>Offset in pixels, if <b><tt>upFormatXabsolute</tt></b>
  4820. <tr valign=top> <td><b><tt>upOutputXStep</tt></b>
  4821. <td>&nbsp;
  4822. <td>Int
  4823. <td>&nbsp;
  4824. <td>Divisor or multiplier for X coords
  4825. <tr valign=top> <td><b><tt>upOutputYOffset</tt></b>
  4826. <td>&nbsp;
  4827. <td>Int
  4828. <td>&nbsp;
  4829. <td>Offset in pixels, if <b><tt>upFormatYabsolute</tt></b>
  4830. <tr valign=top> <td><b><tt>upOutputYStep</tt></b>
  4831. <td>&nbsp;
  4832. <td>Int
  4833. <td>&nbsp;
  4834. <td>Divisor or multiplier for Y coords
  4835. <tr valign=top> <td><b><tt>upRasterBufferInitialized</tt></b>
  4836. <td>&nbsp;
  4837. <td>Bool (RO)
  4838. <td>&nbsp;
  4839. <td>GS buffer OK
  4840. <tr valign=top> <td><b><tt>upRedTransfer</tt></b>
  4841. <td>&nbsp;
  4842. <td>Float[&nbsp;]
  4843. <td>&nbsp;
  4844. <td>Red transfer
  4845. <tr valign=top> <td><b><tt>upRendering</tt></b>
  4846. <td>&nbsp;
  4847. <td>Name
  4848. <td>&nbsp;
  4849. <td>Select rendering algorithm
  4850. <tr valign=top> <td><b><tt>upRenderingInitialized</tt></b>
  4851. <td>&nbsp;
  4852. <td>Bool (RO)
  4853. <td>&nbsp;
  4854. <td>Rendering parameters OK
  4855. <tr valign=top> <td><b><tt>upSelectComponentCommands</tt></b>
  4856. <td>&nbsp;
  4857. <td>String[&nbsp;]
  4858. <td>&nbsp;
  4859. <td>Establish color (output order!)
  4860. <tr valign=top> <td><b><tt>upSetLineFeedCommand</tt></b>
  4861. <td>&nbsp;
  4862. <td>String
  4863. <td>&nbsp;
  4864. <td>Adjust linefeed (Epson only)
  4865. <tr valign=top> <td><b><tt>upVersion</tt></b>
  4866. <td>&nbsp;
  4867. <td>String (RO)
  4868. <td>&nbsp;
  4869. <td>Source code version
  4870. <tr valign=top> <td><b><tt>upWeaveFinalPins</tt></b>
  4871. <td>&nbsp;
  4872. <td>Int[&nbsp;]
  4873. <td>&nbsp;
  4874. <td>Number of bottom pins on EOP passes
  4875. <tr valign=top> <td><b><tt>upWeaveFinalScan</tt></b>
  4876. <td>&nbsp;
  4877. <td>Int
  4878. <td>&nbsp;
  4879. <td>Begin EOP passes (Y-coord)
  4880. <tr valign=top> <td><b><tt>upWeaveFinalXStarts</tt></b>
  4881. <td>&nbsp;
  4882. <td>Int[&nbsp;]
  4883. <td>&nbsp;
  4884. <td>X-pass indices for EOP passes
  4885. <tr valign=top> <td><b><tt>upWeaveFinalYFeeds</tt></b>
  4886. <td>&nbsp;
  4887. <td>Int[&nbsp;]
  4888. <td>&nbsp;
  4889. <td>Y increments for EOP passes
  4890. <tr valign=top> <td><b><tt>upWeaveInitialPins</tt></b>
  4891. <td>&nbsp;
  4892. <td>Int[&nbsp;]
  4893. <td>&nbsp;
  4894. <td>Number of top pins on BOP passes
  4895. <tr valign=top> <td><b><tt>upWeaveInitialScan</tt></b>
  4896. <td>&nbsp;
  4897. <td>Int
  4898. <td>&nbsp;
  4899. <td>End BOP passes (Y coord)
  4900. <tr valign=top> <td><b><tt>upWeaveInitialXStarts</tt></b>
  4901. <td>&nbsp;
  4902. <td>Int[&nbsp;]
  4903. <td>&nbsp;
  4904. <td>X-pass indices for BOP passes
  4905. <tr valign=top> <td><b><tt>upWeaveInitialYFeeds</tt></b>
  4906. <td>&nbsp;
  4907. <td>int[&nbsp;]
  4908. <td>&nbsp;
  4909. <td>Y increments for BOP passes
  4910. <tr valign=top> <td><b><tt>upWeavePasses</tt></b>
  4911. <td>&nbsp;
  4912. <td>Int
  4913. <td>&nbsp;
  4914. <td>XPasses &times; YPasses
  4915. <tr valign=top> <td><b><tt>upWeaveXPasses</tt></b>
  4916. <td>&nbsp;
  4917. <td>Int
  4918. <td>&nbsp;
  4919. <td>Number of X passes
  4920. <tr valign=top> <td><b><tt>upWeaveXStarts</tt></b>
  4921. <td>&nbsp;
  4922. <td>Int[&nbsp;]
  4923. <td>&nbsp;
  4924. <td>X-pass indices for normal passes
  4925. <tr valign=top> <td><b><tt>upWeaveYFeeds</tt></b>
  4926. <td>&nbsp;
  4927. <td>Int[&nbsp;]
  4928. <td>&nbsp;
  4929. <td>Y increments for normal passes
  4930. <tr valign=top> <td><b><tt>upWeaveYOffset</tt></b>
  4931. <td>&nbsp;
  4932. <td>Int
  4933. <td>&nbsp;
  4934. <td>Number of blank or incomplete scans at BOP
  4935. <tr valign=top> <td><b><tt>upWeaveYPasses</tt></b>
  4936. <td>&nbsp;
  4937. <td>Int
  4938. <td>&nbsp;
  4939. <td>Number of X passes
  4940. <tr valign=top> <td><b><tt>upWhiteTransfer</tt></b>
  4941. <td>&nbsp;
  4942. <td>Float[&nbsp;]
  4943. <td>&nbsp;
  4944. <td>White transfer (monochrome devices!)
  4945. <tr valign=top> <td><b><tt>upWriteComponentCommands</tt></b>
  4946. <td>&nbsp;
  4947. <td>String[&nbsp;]
  4948. <td>&nbsp;
  4949. <td>Commands to write each component
  4950. <tr valign=top> <td><b><tt>upWroteData</tt></b>
  4951. <td>&nbsp;
  4952. <td>Bool (RO)
  4953. <td>&nbsp;
  4954. <td>Something (<b><tt>BeginJob</tt></b>) written to output
  4955. <tr valign=top> <td><b><tt>upXMoveCommand</tt></b>
  4956. <td>&nbsp;
  4957. <td>String
  4958. <td>&nbsp;
  4959. <td>X positioning command
  4960. <tr valign=top> <td><b><tt>upXStepCommand</tt></b>
  4961. <td>&nbsp;
  4962. <td>String
  4963. <td>&nbsp;
  4964. <td>Single step to the right
  4965. <tr valign=top> <td><b><tt>upYFlip</tt></b>
  4966. <td>&nbsp;
  4967. <td>Bool
  4968. <td>&nbsp;
  4969. <td>Flips output along the Y axis
  4970. <tr valign=top> <td><b><tt>upYMoveCommand</tt></b>
  4971. <td>&nbsp;
  4972. <td>String
  4973. <td>&nbsp;
  4974. <td>Y positioning command
  4975. <tr valign=top> <td><b><tt>upYStepCommand</tt></b>
  4976. <td>&nbsp;
  4977. <td>String
  4978. <td>&nbsp;
  4979. <td>Single step down
  4980. <tr valign=top> <td><b><tt>upYellowTransfer</tt></b>
  4981. <td>&nbsp;
  4982. <td>Float[&nbsp;]
  4983. <td>&nbsp;
  4984. <td>Yellow transfer
  4985. </table></blockquote>
  4986. <h3><a name="Uni_honors"></a><b><tt>uniprint</tt></b>'s Roll of Honor</h3>
  4987. <p>
  4988. I should mention all of the people who were involved in
  4989. <b><tt>stcolor</tt></b>'s evolution, but I've decided to start from scratch
  4990. here for <b><tt>uniprint</tt></b>:
  4991. <blockquote>
  4992. <dl>
  4993. <dt>John P. Beale
  4994. <dd>for testing the <b><tt>stc600</tt></b> modes
  4995. <dt>Bill Davidson
  4996. <dd>who triggered some weaving research and tested <b><tt>stc2s_h</tt></b>
  4997. <dt>L. Peter Deutsch
  4998. <dd>who triggered ease of configuration
  4999. <dt>Mark Goldberg
  5000. <dd>who prepared the <b><tt>stc500</tt></b> transfers
  5001. <dt>Scott F. Johnston and Scott J. Kramer
  5002. <dd>for testing the <b><tt>stc800</tt></b> modes
  5003. <dt>Martin Lottermoser
  5004. <dd>for his great commented H-P DeskJet driver
  5005. <dt>Helmut Riegler
  5006. <dd>for the BJC extension
  5007. <dt>Hans-Gerd Straeter
  5008. <dd>for some measured transfer curves and more
  5009. <dt>Uli Wortmann
  5010. <dd>for discussions and his <b><tt>cdj850</tt></b> driver
  5011. <dt>My family
  5012. <dd>for tolerating my printer-driver hacking
  5013. </dl>
  5014. </blockquote>
  5015. <address>
  5016. Gunther Hess<br>
  5017. Duesseldorfer Landstr. 16b<br>
  5018. D-47249 Duisburg<br>
  5019. Germany<br>
  5020. +49 203 376273 telephone (MET evening hours)<br>
  5021. &lt;<a href="mailto:ghess@elmos.de">ghess@elmos.de</a>&gt;
  5022. </address>
  5023. <h3><a name="Uni_weaving_howto"></a><tt>Uniprint</tt> weaving parameters howto</h3>
  5024. This section was contributed by Glenn Ramsey.<p>
  5025. <p>I wrote this because the documentation was very brief and I really struggled
  5026. with it for a while, but it is very simple once you understand what is going
  5027. on.
  5028. <p>This only describes how to work out the Y parameters, I haven't looked
  5029. at the X parameters yet.
  5030. <ol>
  5031. <li>
  5032. <b>Determine the nozzle geometry (upOutputPins)</b>
  5033. <p>
  5034. You need to know how many nozzles the printer has and the spacing between
  5035. them. Usually you can find this out from the printer manual, or the printer
  5036. supplier, but you may have to dissect a couple of printer output files
  5037. produced with the driver supplied with the printer. There is a utility
  5038. called escp2ras<a href="#escp2ras"><sup>*</sup></a> that will help with that.
  5039. Sometimes the term pin is used instead of nozzle but they mean the same thing.
  5040. <p>The number of nozzles will be the value assigned to the upOutputPins
  5041. parameter.
  5042. <p>Actually you don't have to print with all the pins available but for
  5043. the purpose of demonstration I'll assume that we are using them all.
  5044. <p>
  5045. <a name="escp2ras"></a>* escp2ras is available from Gunther Hess' page at <a href="http://www-md.e-technik.uni-rostock.de/ma/gunther/gs/index.html">http://www-md.e-technik.uni-rostock.de/ma/gunther/gs/index.html</a>
  5046. </li>
  5047. <p>
  5048. <li><b>Determine how many passes are required (upWeaveYPasses)</b>
  5049. <p>The number of passes required is going to depend on the required resolution
  5050. and the nozzle spacing.
  5051. <blockquote>
  5052. <tt>passes = resolution * nozzle spacing
  5053. </tt>
  5054. </blockquote>
  5055. This will be the value assigned to the upWeaveYPasses parameter.
  5056. <p>For example if the desired resolution is 360 dpi and the nozzles are
  5057. spaced at 1/90in then 360 * 1/90 = 4 passes are required. For 720 dpi 8
  5058. passes would be required. The printer would, of course, have to be capable
  5059. of moving the paper in increments of either 360 or 720 dpi too.
  5060. </li>
  5061. <p>
  5062. <li>
  5063. <b>Determine the normal Y feed increment (upWeaveYFeeds)</b>
  5064. <p>
  5065. You need to work out how much to feed the paper so that when the paper
  5066. has moved by one head length in however many passes you have then each
  5067. row space on the paper has been passed over by at least one nozzle. There
  5068. will be one feed value for each pass and the feed values must comply with
  5069. the following rules:
  5070. <blockquote>
  5071. <tt>
  5072. <p>sum of feeds = passes * nozzles
  5073. <br>feed%passes != 0 (feed is not exactly divisible by passes)
  5074. <br>sum of (nozzles - feed) = 0
  5075. </tt>
  5076. </blockquote>
  5077. <p>For example if passes=4 and nozzles=15, then sum of feeds=60. The feed
  5078. values could be 1,1,1,57 or 15,15,15,15 or 14,15,18,13.
  5079. <p>These values will be assigned to the upWeaveYFeeds parameter.
  5080. <p>You would need to experiment to see what combination looks best on the
  5081. printer.
  5082. <p>I found it convenient to draw several lines of nozzles and then move
  5083. them around to see how the different combinations would fill the paper.
  5084. A computer drawing tool makes this easier than pencil and paper (I used
  5085. Dia, a GNOME app). The number of nozzles would probably be be a good place
  5086. to start.
  5087. <p>Remember that if the number of passes is more than 1 then the feed increment
  5088. will be less than the nozzle spacing and <tt>passes &times; feed increment size</tt>
  5089. must equal the physical distance between each nozzle.
  5090. </li>
  5091. <p>
  5092. <li>
  5093. <b>Determine the beginning of page pins (upWeaveInitialPins)</b>
  5094. <p>
  5095. These values will be assigned to the upWeaveInitialPins parameter and are
  5096. the numbers of nozzles to operate in each of the initial passes at the top
  5097. of a page. The nozzles that the values refer to are the topmost nozzles
  5098. on the head, nearest the top margin. If the image doesn't start at the
  5099. top margin then uniprint doesn't use these feeds.
  5100. <p>I don't know a mathematical relation for this except that at least one
  5101. of the values must be the number of nozzles, but I'm sure that there must
  5102. be one. I used a graphical method, the description that follows refers
  5103. to the ascii diagram in below.
  5104. <p>Draw a line of nozzles for each pass arranged as they would be using
  5105. the normal Y feed increment determined in step 3. In the diagram below
  5106. this would be passes 5-8.
  5107. <p>Draw a line of nozzles that would print just before the first normal
  5108. pass. The feed increment for this pass will be close to and most likely
  5109. 1 or 2 units less than the feed increment of the last normal pass. In the
  5110. example below this line is pass 4 and the feed increment is 13 whereas
  5111. the normal feed increment is 15.
  5112. <p>Draw each pass before that with a small feed increment so that if all
  5113. of the nozzles appearing above the first nozzle of the first normal pass
  5114. operate then all of the spaces will be filled. This feed increment is usually
  5115. 1 except in cases where some jiggery pokery is going on to make the printer
  5116. print at an apparent higher resolution than the nozzle diameter.
  5117. <p>Now select the nozzles that will operate in each of theses initial passes
  5118. so that the paper is filled. In each pass the nozzles must be adjacent
  5119. to each other and at least one of the passes will have all the nozzles
  5120. operating. I suspect that for each combination of normal Y feed increments
  5121. there will only be one set of valid beginning of page increments.
  5122. </li>
  5123. </ol>
  5124. <h4>Example: stc.upp from Aladdin Ghostscript 6.01</h4>
  5125. 15 nozzles spaced at 1/90 in, 360 dpi requires 4 passes.
  5126. <blockquote><tt><pre>
  5127. -dupWeaveYPasses=4
  5128. -dupOutputPins=15
  5129. -dupWeaveYFeeds="{15 15 15 15}"
  5130. -dupWeaveInitialYFeeds="{1 1 1 13}"
  5131. -dupWeaveInitialPins="{ 4 15 11 7}"
  5132. </pre></tt></blockquote>
  5133. The following diagram shows which nozzles operate during each pass.
  5134. <br>Passes 1-4 are beginning of page passes and passes 5-8 are normal passes.
  5135. <blockquote>
  5136. <p>x=nozzle operates, o=nozzle not used in this pass<tt></tt>
  5137. <p><tt>&nbsp; 1 2 3 4 5 6 7 8 - pass no</tt>
  5138. <br><tt>0 x</tt>
  5139. <br><tt>1&nbsp;&nbsp; x</tt>
  5140. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5141. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5142. <br><tt>4 x</tt>
  5143. <br><tt>5&nbsp;&nbsp; x</tt>
  5144. <br><tt>6&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5145. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5146. <br><tt>8 x</tt>
  5147. <br><tt>9&nbsp;&nbsp; x</tt>
  5148. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5149. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5150. <br><tt>2 x</tt>
  5151. <br><tt>3&nbsp;&nbsp; x</tt>
  5152. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5153. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5154. <br><tt>6 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5155. <br><tt>7&nbsp;&nbsp; x</tt>
  5156. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5157. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5158. <br><tt>0 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5159. <br><tt>1&nbsp;&nbsp; x</tt>
  5160. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5161. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5162. <br><tt>4 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5163. <br><tt>5&nbsp;&nbsp; x</tt>
  5164. <br><tt>6&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5165. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5166. <br><tt>8 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5167. <br><tt>9&nbsp;&nbsp; x</tt>
  5168. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5169. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5170. <br><tt>2 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5171. <br><tt>3&nbsp;&nbsp; x</tt>
  5172. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5173. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5174. <br><tt>6 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5175. <br><tt>7&nbsp;&nbsp; x</tt>
  5176. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5177. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5178. <br><tt>0 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5179. <br><tt>1&nbsp;&nbsp; x</tt>
  5180. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5181. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5182. <br><tt>4 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5183. <br><tt>5&nbsp;&nbsp; x</tt>
  5184. <br><tt>6&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5185. x</tt>
  5186. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5187. <br><tt>8 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5188. <br><tt>9&nbsp;&nbsp; x</tt>
  5189. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5190. x</tt>
  5191. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5192. <br><tt>2 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5193. <br><tt>3&nbsp;&nbsp; x</tt>
  5194. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5195. x</tt>
  5196. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5197. <br><tt>6 o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5198. <br><tt>7&nbsp;&nbsp; x</tt>
  5199. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5200. x</tt>
  5201. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; o&nbsp;&nbsp; x</tt>
  5202. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5203. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5204. x</tt>
  5205. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5206. x</tt>
  5207. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5208. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5209. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5210. x</tt>
  5211. <br><tt>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5212. x</tt>
  5213. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5214. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5215. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5216. x</tt>
  5217. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5218. x</tt>
  5219. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5220. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5221. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5222. x</tt>
  5223. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5224. x</tt>
  5225. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5226. <br><tt>6</tt>
  5227. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5228. x</tt>
  5229. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5230. x</tt>
  5231. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5232. <br><tt>0</tt>
  5233. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5234. x</tt>
  5235. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5236. x</tt>
  5237. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5238. <br><tt>4</tt>
  5239. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5240. x</tt>
  5241. <br><tt>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5242. x</tt>
  5243. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x</tt>
  5244. <br><tt>8</tt>
  5245. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5246. x</tt>
  5247. <br><tt>0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5248. x</tt>
  5249. <br><tt>1</tt>
  5250. <br><tt>2</tt>
  5251. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5252. x</tt>
  5253. <br><tt>4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5254. x</tt>
  5255. <br><tt>5</tt>
  5256. <br><tt>6</tt>
  5257. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5258. x</tt>
  5259. <br><tt>8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5260. x</tt>
  5261. <br><tt>9</tt>
  5262. <br><tt>0</tt>
  5263. <br><tt>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5264. x</tt>
  5265. <br><tt>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5266. x</tt>
  5267. <br><tt>3</tt>
  5268. <br><tt>4</tt>
  5269. <br><tt>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5270. x</tt>
  5271. <br><tt>6</tt>
  5272. <br><tt>7</tt>
  5273. <br><tt>8</tt>
  5274. <br><tt>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5275. x</tt>
  5276. <br><tt>0</tt>
  5277. <br><tt>1</tt>
  5278. <br><tt>2</tt>
  5279. <br><tt>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5280. x</tt>
  5281. <br><tt>4</tt>
  5282. <br><tt>5</tt>
  5283. <br><tt>6</tt>
  5284. <br><tt>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  5285. x</tt>
  5286. </blockquote>
  5287. <p>These parameters would also work:
  5288. <blockquote><tt><pre>
  5289. -dupWeaveYPasses=4
  5290. -dupOutputPins=15
  5291. -dupWeaveYFeeds="{14 15 18 13}"
  5292. -dupWeaveInitialYFeeds="{1 1 1 13}"
  5293. -dupWeaveInitialPins="{ 4 11 7 15}"
  5294. </pre></tt></blockquote>
  5295. <p>
  5296. <hr>
  5297. <h3><a name="Uni_esc300"></a>Extension to <tt>uniprint</tt> for the Epson Stylus Color 300</h3>
  5298. This section was contributed by Glenn Ramsey.<p>
  5299. The Epson Stylus Color 300 uses a different command set to other Epson
  5300. Stylus Color printers that use the ESC/P2 language. As far as I can
  5301. tell its commands are a subset of ESC/P2. In ESC/P2 the colour to be
  5302. printed is selected by a 'set colour' command and then the data sent
  5303. is only printed in that colour until the colour is changed with another
  5304. 'set colour' command. The Stylus Color 300 lacks this functionality.
  5305. The data sent to the printer maps directly to the ink nozzles and colour
  5306. of an output scan line in the printed output is determined by the position
  5307. of the scan line within the data. This means that the driver must know
  5308. how the nozzles are arranged and must format the output accordingly.
  5309. The extension adds a format that I have called EscNozzleMap and adds some
  5310. additional parameters to uniprint.<br>
  5311. <ul>
  5312. <li><b><tt>upOutputFormat</tt></b>selects the output method, and should be set to the value
  5313. <b><tt>/EscNozzleMap</tt></b> to select this format.
  5314. <blockquote>
  5315. <table cellpadding="0" cellspacing="0">
  5316. <tbody>
  5317. <tr valign="Top">
  5318. <td><b><tt>/EscNozzleMap</tt></b></td>
  5319. <td>&nbsp;</td>
  5320. <td>produces output for the Epson Stylus Color 300
  5321. </td>
  5322. </tr>
  5323. <tbody>
  5324. </table>
  5325. </blockquote>
  5326. </ul>
  5327. <blockquote>
  5328. <table cellpadding="0" cellspacing="0">
  5329. <tbody>
  5330. <tr>
  5331. <th colspan="5" bgcolor="#cccc00">
  5332. <hr><font size="+1"><b><tt>uniprint</tt></b> parameters for the
  5333. EscNozzleMap format</font>
  5334. <hr></th>
  5335. </tr>
  5336. <tr valign="Bottom">
  5337. <th align="Left">Parameter
  5338. </th>
  5339. <td>&nbsp;
  5340. </td>
  5341. <th align="Left">Type
  5342. </th>
  5343. <td>&nbsp;&nbsp;&nbsp;
  5344. </td>
  5345. <th align="Left">Use
  5346. </th>
  5347. </tr>
  5348. <tr>
  5349. <td colspan="5">
  5350. <hr></td>
  5351. </tr>
  5352. <tr valign="Top">
  5353. <td><b><tt>upNozzleMapRowsPerPass</tt></b></td>
  5354. <td>&nbsp;
  5355. </td>
  5356. <td>Int
  5357. </td>
  5358. <td>&nbsp;
  5359. </td>
  5360. <td>output rows to generate for each pass of the head
  5361. </td>
  5362. </tr>
  5363. <tr valign="Top">
  5364. <td><b><tt>upNozzleMapPatternRepeat</tt></b></td>
  5365. <td>&nbsp;
  5366. </td>
  5367. <td>Int
  5368. </td>
  5369. <td>&nbsp;
  5370. </td>
  5371. <td>no. of rows that correspond to the repeat pattern of the
  5372. nozzles
  5373. </td>
  5374. </tr>
  5375. <tr valign="Top">
  5376. <td><b><tt>upNozzleMapRowMask</tt></b></td>
  5377. <td>&nbsp;
  5378. </td>
  5379. <td>Int[]
  5380. </td>
  5381. <td>&nbsp;
  5382. </td>
  5383. <td>mask indicating the colour of the nozzles
  5384. </td>
  5385. </tr>
  5386. <tr valign="Top">
  5387. <td><b><tt>upNozzleMapMaskScanOffset</tt></b></td>
  5388. <td>&nbsp;
  5389. </td>
  5390. <td>Int[]
  5391. </td>
  5392. <td>&nbsp;
  5393. </td>
  5394. <td>mask indicating the physical position of the nozzles
  5395. </td>
  5396. </tr>
  5397. </tbody>
  5398. </table>
  5399. </blockquote>
  5400. <h4>A more detailed description of the new parameters</h4>
  5401. <ul>
  5402. <li><b><tt>upNozzleMapRowsPerPass</tt></b><br>
  5403. The number of rows of data that are required to address all nozzles for a
  5404. single pass of the head. There will always be this number of rows of output
  5405. data generated. I'd expect it to be the same as the total number of nozzles but
  5406. it wouldn't break the formatter if it wasn't. So if you wanted to print with
  5407. only the 10th nozzle then row 10 would contain data corresponding to the bit
  5408. pattern and all of the others would be padded with zeros.
  5409. </li>
  5410. <li><b><tt>upNozzleMapPatternRepeat</tt></b><br>
  5411. The number of nozzles in each repeated group on the printing head.
  5412. This parameter must correspond with the length of the upNozzleMapRowMask array.
  5413. </li>
  5414. <li><b><tt>upNozzleMapRowMask</tt></b><br>
  5415. An array of integers that defines the colour of the nozzles on the
  5416. head and whether the nozzles will be used to print. The array index
  5417. defines the row index for the nozzle in the output data
  5418. and the value defines the colour of the nozzle. The mapping
  5419. of colours to values is defined in the table below.
  5420. <blockquote>
  5421. <table cellpadding="0" cellspacing="0">
  5422. <tbody>
  5423. <tr valign="Bottom">
  5424. <th align="Left">colour
  5425. </th>
  5426. <td>&nbsp;
  5427. </td>
  5428. <th align="center">mask value
  5429. </th>
  5430. </tr>
  5431. <tr>
  5432. <td colspan="5">
  5433. <hr></td>
  5434. </tr>
  5435. <tr valign="Top" align="middle">
  5436. <td><b><tt>K</tt></b></td>
  5437. <td>&nbsp;
  5438. </td>
  5439. <td>1
  5440. </td>
  5441. </tr>
  5442. <tr valign="Top" align="middle">
  5443. <td><b><tt>C</tt></b></td>
  5444. <td>&nbsp;
  5445. </td>
  5446. <td>2
  5447. </tr>
  5448. <tr valign="Top" align="middle">
  5449. <td><b><tt>M</tt></b></td>
  5450. <td>&nbsp;
  5451. </td>
  5452. <td>3
  5453. </td>
  5454. </tr>
  5455. <tr valign="Top" align="middle">
  5456. <td><b><tt>Y</tt></b></td>
  5457. <td>&nbsp;
  5458. </td>
  5459. <td>4
  5460. </td>
  5461. </tr>
  5462. <tr valign="Top" align="middle">
  5463. <td><b><tt>no data</tt></b></td>
  5464. <td>&nbsp;
  5465. </td>
  5466. <td>0
  5467. </td>
  5468. </tr>
  5469. </tbody>
  5470. </table>
  5471. </blockquote>
  5472. A value of 0 means that the nozzle is not used and the row in the output data will be
  5473. padded with zeros.<br>
  5474. </li>
  5475. <li><b><tt>upNozzleMapMaskScanOffset</tt></b><br>
  5476. An array of integers that defines the physical position of the nozzles relative
  5477. to the first nozzle in the repeated group. The relative distance is measured in
  5478. printed line widths and will be different for different printing resolutions.
  5479. This parameter is used because the physical spacing of the nozzles may not
  5480. correspond to their mapping in the output data. For example the ESC300 has nozzles
  5481. physically arranged something like this:
  5482. <table>
  5483. <tr>
  5484. <td bgcolor="#00ffff">&nbsp;
  5485. </td>
  5486. <td bgcolor="#ffff00">&nbsp;
  5487. </td>
  5488. <td bgcolor="#000000">&nbsp;
  5489. </td>
  5490. <td bgcolor="#ff00ff">&nbsp;
  5491. </td>
  5492. <td bgcolor="#000000">&nbsp;
  5493. </td>
  5494. <td>&nbsp;
  5495. </td>
  5496. <td bgcolor="#000000">&nbsp;
  5497. </td>
  5498. <td>&nbsp;
  5499. </td>
  5500. <td>&nbsp;
  5501. </td>
  5502. <td>&nbsp;
  5503. </td>
  5504. <td>&nbsp;
  5505. </td>
  5506. <td>&nbsp;
  5507. </td>
  5508. <td bgcolor="#00ffff">&nbsp;
  5509. </td>
  5510. <td bgcolor="#ffff00">&nbsp;
  5511. </td>
  5512. <td bgcolor="#000000">&nbsp;
  5513. </td>
  5514. <td bgcolor="#ff00ff">&nbsp;
  5515. </td>
  5516. <td bgcolor="#000000">&nbsp;
  5517. </td>
  5518. <td>&nbsp;
  5519. </td>
  5520. <td bgcolor="#000000">&nbsp;
  5521. </td>
  5522. <td bgcolor="#ffffff">&nbsp;
  5523. </td>
  5524. </tr>
  5525. <td>&nbsp;
  5526. </td>
  5527. <td>&nbsp;
  5528. </td>
  5529. <td>&nbsp;
  5530. </td>
  5531. <td>&nbsp;
  5532. </td>
  5533. <td>&nbsp;
  5534. </td>
  5535. <td>&nbsp;
  5536. </td>
  5537. <td bgcolor="#00ffff">&nbsp;
  5538. </td>
  5539. <td bgcolor="#ffff00">&nbsp;
  5540. </td>
  5541. <td bgcolor="#000000">&nbsp;
  5542. </td>
  5543. <td bgcolor="#ff00ff">&nbsp;
  5544. </td>
  5545. <td bgcolor="#000000">&nbsp;
  5546. </td>
  5547. <td>&nbsp;
  5548. </td>
  5549. <td bgcolor="#000000">&nbsp;
  5550. </td>
  5551. <td>&nbsp;
  5552. </td>
  5553. <td>&nbsp;
  5554. </td>
  5555. <td>&nbsp;
  5556. </td>
  5557. <td>&nbsp;
  5558. </td>
  5559. <td>&nbsp;
  5560. </td>
  5561. <td bgcolor="#00ffff">&nbsp;
  5562. </td>
  5563. <td bgcolor="#ffff00">&nbsp;
  5564. </td>
  5565. <td>etc ...
  5566. </td>
  5567. <tr>
  5568. </tr>
  5569. </table>
  5570. There is a one nozzle width space between the last two nozzles in each group.
  5571. In the output data the data for the last nozzle in the group would be in row 5
  5572. (numbering starts at 0) but the nozzle is physically positioned at 6 spaces from
  5573. the first nozzle.
  5574. </ul>
  5575. <h4>Example 1 - Epson Stylus Color 300 - 360 dpi colour</h4>
  5576. <blockquote><pre>
  5577. -dupWeaveYPasses=6
  5578. -dupOutputPins=11
  5579. -dupWeaveYFeeds="{ 11 11 11 11 11 11 }"
  5580. -dupWeaveInitialYFeeds="{ 1 1 1 1 1 7 }"
  5581. -dupWeaveInitialPins="{ 2 11 9 7 5 3 }"
  5582. -dupNozzleMapRowsPerPass=64
  5583. -dupNozzleMapPatternRepeat=6
  5584. -dupNozzleMapRowMask="{ 2 4 1 3 0 0 }"
  5585. -dupNozzleMapMaskScanOffset="{ 0 1 2 3 0 0 }"
  5586. </pre></blockquote>
  5587. The weaving parameters are the same as for any other uniprint driver
  5588. but they must be consistent with the nozzle map parameters. In this printer
  5589. the coloured nozzles are spaced at 1/60" so 6 passes are required for 360
  5590. dpi resolution.
  5591. <p>
  5592. In the example there are 64 rows of data required for each head pass. Each
  5593. row must be completely filled with data for each pass so if certain nozzles
  5594. do not print in the pass then the rows for those nozzles will be padded
  5595. with zeroes.
  5596. <P>
  5597. The row mask translates to "C Y K M 0 0" so in the output data rows 0,7,13,...
  5598. will contain data for cyan, rows 1,8,14,... will contain data for yellow, etc. Rows 4,10,16,...
  5599. and 5, 11,15,... will always be padded with zeroes. The <i>upNozzleMapPatternRepeat</i>
  5600. parameter defines the length of the mask.
  5601. <p>
  5602. The row mask is repeated for each group of <i>upNozzleMapPatternRepeat</i> rows
  5603. in the output data. In this case there are 64 rows so there will be 10 groups
  5604. of "C Y K M 0 0" followed by "C Y K M" which is equivalent to 11 output
  5605. pins.
  5606. <P>
  5607. The <i>upNozzleMaskScanOffset</i> array indicates how the data from the scan
  5608. buffer is mapped to the output data. The data is presented to the formatter
  5609. as a buffer of four colour scanlines. The index of the scanline being printed,
  5610. lets call it y, always corresponds, in this example, to the physical position of
  5611. the cyan nozzle but since the nozzles are not on the same horizontal
  5612. line then the other colours for the current pass must come from other
  5613. scanlines in the scan buffer. The example is { 0 1 2 3 0 0 }, this means that
  5614. when printing a 4 colour image the magenta data would come from scanline y+3,
  5615. the black from scanline y+2, etc. It would have been possible in this case
  5616. to use the array index instead of the <i>upNozzleMaskScanOffset</i> parameter
  5617. however the parameter is necessary to be able to use the full capability of the
  5618. printer in black only mode.
  5619. <h4>Example 2 - Epson Stylus Color 300 - 180 dpi black only</h4>
  5620. <blockquote>
  5621. <pre>
  5622. -dupMargins="{ 9.0 39.96 9.0 9.0}"
  5623. -dupWeaveYPasses=1
  5624. -dupOutputPins=31
  5625. -dupNozzleMapRowsPerPass=64
  5626. -dupNozzleMapPatternRepeat=6
  5627. -dupNozzleMapRowMask="{ 0 0 1 0 1 1}"
  5628. -dupNozzleMapMaskScanOffset="{ 0 0 0 0 1 2 }"
  5629. </pre>
  5630. </blockquote>
  5631. In this example there is no weaving.
  5632. <p>
  5633. The ESC300 has black nozzles evenly physically arranged as K K K but the data must
  5634. be sent to the printer as 00K0KK. This is handled by the <i>upNozzleMapRowMask</i>
  5635. and <i>upNozzleMaskScanOffset</i> arrays. The <i>upNozzleMapRowMask</i> array is
  5636. { 0 0 1 0 1 1} which translates to { 0 0 K 0 K K } so rows 0, 1 and 3 will always
  5637. contain zeros and the other rows will contain data.
  5638. <p>
  5639. The <i>upNozzleMaskScanOffset</i> array
  5640. in this case is { 0 0 0 0 1 2 } so if the data for the 1st nozzle comes from row
  5641. y in the scan buffer then the data for the 2nd and 3rd nozzles will come from rows
  5642. y+1 and y+2.
  5643. <h4>Example 3 - Epson Stylus Color 300 - 360 dpi black only</h4>
  5644. <blockquote>
  5645. <pre>
  5646. -dupWeaveYPasses=2
  5647. -dupOutputPins=31
  5648. -dupWeaveYFeeds="{31 31}"
  5649. -dupWeaveInitialYFeeds="{1 31}"
  5650. -dupWeaveInitialPins="{16 31}"
  5651. -dupNozzleMapRowsPerPass=64
  5652. -dupNozzleMapPatternRepeat=6
  5653. -dupNozzleMapRowMask="{ 0 0 1 0 1 1}"
  5654. -dupNozzleMapMaskScanOffset="{ 0 0 0 0 2 4 }"
  5655. </pre>
  5656. </blockquote>
  5657. In this example 2 weave passes are required to achieve the desired resolution.
  5658. <p>
  5659. The <i>upNozzleMaskScanOffset</i> array in this case is { 0 0 0 0 2 4 } because
  5660. there are two weave passes so if the data for the first nozzle comes from row y
  5661. in the scan buffer then the data for the 2nd and 3rd nozzles must come from rows
  5662. y+(1*2) and y+(2*2).
  5663. <p>
  5664. <address>
  5665. Glenn Ramsey<br>
  5666. glennr at users.sourceforge.net<br>
  5667. February 2001
  5668. </address>
  5669. <br>
  5670. <hr>
  5671. <h2><a name="SPARCprinter"></a>Sun SPARCprinter</h2>
  5672. <p>
  5673. This section was contributed by Martin Schulte.
  5674. <p>
  5675. With a SPARCprinter you always buy software that enables you to do
  5676. PostScript printing on it. A page image is composed on the host, which
  5677. sends a bitmap to the SPARCprinter through a special SBUS video interface.
  5678. So the need for a Ghostscript interface to the SPARCPrinter seems low, but
  5679. on the other hand, Sun's software prints some PostScript drawings
  5680. incorrectly: some pages contain a thin vertical line of rubbish, and on
  5681. some Mathematica drawings the text at the axes isn't rotated. Ghostscript,
  5682. however, gives the correct results. Moreover, replacing proprietary
  5683. software should never be a bad idea.
  5684. <p>
  5685. The problem is that there has yet been no effort to make the SPARCPrinter
  5686. driver behave like a BSD output filter. I made my tests using the script
  5687. shown here.
  5688. <h3><a name="SPARC_install"></a>Installation</h3>
  5689. <p>
  5690. Add <b><tt>sparc.dev</tt></b> to <b><tt>DEVICE_DEVS</tt></b> and compile
  5691. Ghostscript as described in the documentation on <a href="Make.htm">how to
  5692. build Ghostscript</a>. Afterwards you can use the following script as an
  5693. example for printing after modifying it with the right pathnames --
  5694. including for <b>{GSPATH}</b> the full pathname of the Ghostscript
  5695. executable:
  5696. <blockquote>
  5697. <pre>outcmd1='/vol/local/lib/troff2/psxlate -r'
  5698. outcmd2='<b><em>{GSPATH}</em></b> -sDEVICE=sparc -sOUTPUTFILE=/dev/lpvi0 -'
  5699. if [ $# -eq 0 ]
  5700. then
  5701. $outcmd1 | $outcmd2
  5702. else
  5703. cat $* | $outcmd1 | $outcmd2
  5704. fi
  5705. </pre></blockquote>
  5706. <h3><a name="SPARC_problems"></a>Problems</h3>
  5707. <p>
  5708. Since <b><tt>/dev/lpi</tt></b> can be opened only for exclusive use, if
  5709. another job has it open (engine_ctl_sparc or another Ghostscript are the
  5710. most likely candidates), Ghostscript stops with "Error: /invalidfileaccess
  5711. in --.outputpage--"
  5712. <p>
  5713. In case of common printer problems like being out of paper, a warning
  5714. describing the reason is printed to stdout. The driver tries access again
  5715. each five seconds. Due to a problem with the device driver (in the kernel)
  5716. the reason for printer failure isn't always reported correctly to the
  5717. program. This is the case, for instance, if you open the top cover (error
  5718. E5 on the printer's display). Look at the display on the printer itself if
  5719. a "Printer problem with unknown reason" is reported. Fatal errors cause
  5720. the print job to be terminated.
  5721. <hr>
  5722. <h2><a name="Apple"></a>Apple dot matrix printer</h2>
  5723. <p>
  5724. This section was contributed by Mark Wedel
  5725. &lt;<a href="mailto:master@cats.ucsc.edu">master@cats.ucsc.edu</a>&gt;.
  5726. <p>
  5727. The Apple Dot Matrix Printer (DMP) was a parallel predecessor to the
  5728. Imagewriter printer. As far as I know, Imagewriter commands are a superset
  5729. of the Dot Matrix printer's, so the driver should generate output that can
  5730. be printed on Imagewriters.
  5731. <p>
  5732. To print images, the driver sets the printer for unidirectional printing
  5733. and 15 characters per inch (cpi), or 120dpi. It sets the line feed to 1/9
  5734. inch. When finished, it sets the printer to bidirectional printing,
  5735. 1/8-inch line feeds, and 12 cpi. There appears to be no way to reset the
  5736. printer to initial values.
  5737. <p>
  5738. This code does not set for 8-bit characters (which is required). It also
  5739. assumes that carriage return-newline is needed, and not just carriage
  5740. return. These are all switch settings on the DMP, and I have configured
  5741. them for 8-bit data and carriage return exclusively. Ensure that the Unix
  5742. printer daemon handles 8-bit (binary) data properly; in my SunOS 4.1.1
  5743. <b><tt>printcap</tt></b> file the string "<b><tt>ms=pass8,-opost</tt></b>"
  5744. works fine for this.
  5745. <p>
  5746. Finally, you can search <b><tt>devdemp.c</tt></b> for
  5747. "<b><tt>Init</tt></b>" and "<b><tt>Reset</tt></b>" to find the strings that
  5748. initialize the printer and reset things when finished, and change them to
  5749. meet your needs.
  5750. <!-- [2.0 end contents] ==================================================== -->
  5751. <!-- [3.0 begin visible trailer] =========================================== -->
  5752. <hr>
  5753. <p>
  5754. <small>Copyright &copy; 1996, 2000 Aladdin Enterprises.
  5755. All rights reserved.</small>
  5756. <p>
  5757. <small>This file is part of AFPL Ghostscript. See the
  5758. <a href="Public.htm">Aladdin Free Public License</a> (the "License") for
  5759. full details of the terms of using, copying, modifying, and redistributing
  5760. AFPL Ghostscript.</small>
  5761. <p>
  5762. <small>Ghostscript version 7.04, 31 January 2002
  5763. <!-- [3.0 end visible trailer] ============================================= -->
  5764. </body>
  5765. </html>