• No results found

Installing data objects using the AFP Resource InstallerInstaller

Examples of APF color management systems

Chapter 4. Installing data objects using the AFP Resource InstallerInstaller

TheInfoPrintAFPResource Installeralsoinstallstheactualdataobjectresources, thatis, colorobjectssuchasIOCAFS45s,TIFFs,andPDFs,thatareto bepresented ona page.ThiscomponentoftheResourceInstalleriscalledthedataobject installer. Fromacolor managementperspective,thisInstalleralso allowsCMRs and renderingintentstobeassociatedwith theobjectbeinginstalled.This

associationallows colormanagementtobespecifiedfor,andappliedto, dataobjectswithout changingthe applicationthat referencesthe objectsandwithout changingtheobjects.

Aspart oftheinstallationadataobjectRATisbuilt,whichisidentified with TBLtpe=X'04'(dataobjectRAT)intheRATheader.ThedataobjectRATcontains an entryforeachinstalleddataobject. ThegeneralRATsyntaxandsemantics are definedintheMixedObjectDocumentContentArchitecture(MO:DCA)Reference.

Eachentryinthis RATmapsthenameoftheobject(whichisalsothenamethatis usedtoreferencetheobjectintheMO:DCAdatastream)tothefilenamewith whichtheobjectisstored andtotheobjectOID withwhichtheobjectmaybe capturedina printer.

ThisRATentrymayalsooptionallyassociateCMRswiththeobjectandindicate how eachCMRistobe processed:inauditmodeorinstructionmode.For

example,a TIFFimagemaybe associatedwithanauditCCCMRthattiestheRGB colorsintheTIFFtotheICC profileofthescannerthatwasusedtocreatethe TIFF. TheRATentrymayalso specifyinstructionCMRs,suchasatonetransfer curve andahalftone, thataretobeapplied intherenderingprocesstooptimize theoutputappearanceoftheTIFF.Thecorresponding CMRnamesare usedbythe printservertoaccesstheCMRRAT, andtoprocesstheCMRsinaccordancewith therulesforCMRRATprocessing. Lastly,theRATentrymayspecifyarendering intentthatistobeusedwhentheobjectispresentedonanoutputdevice.This rendering intentselectsthelinkCMRLUTthatisusedtorendercolorsinthe object.

CMRs thatare mappedtoadataobjectintheRATbecomesecondaryresources of thatdataobject. Inorderfor thesesecondaryresourcestobeprocessed, thedata objectmust itselfbemappedasaresourceintheAEG ofthepageoroverlaythat includesthedataobject.ThisallowstheprintservertoprocessthedataobjectRAT entrywhileprocessingtheAEG andtherebyensurethatsecondaryresources,such asmappedCMRs,aredownloadedtothepresentationdevicebeforethedevice enters thepage-buildstate. Dataobjectsthatare mappedasresourcesbefore being includedonapageoroverlayaresometimescalledhard objects.Dataobjectsthat are notmappedasresourcesbefore beingincludedonapageor overlayare sometimescalledsoftobjects.Therefore,usingthatterminology,CMRsthatare mappedtoa dataobjectintheRATwillonlybe processedforhard objects.

Note: Notall dataobjectscanbe mappedasaresourceandprocessedasahard object.IOCAobjectsand non-OCAobjectssuchasEPS,PDF,TIFF,GIF,JFIF, PCL,and JP2canbeprocessedinthismanner,butPTOCA,BCOCA,and AFPGOCAobjectscannot.

©CopyrightInfoPrintSolutionsCompany2006,2007 17

The RATusedfordataobjectresourcesissimilartotheCMRRATandthe TrueType FontRATbut isa separatetablewith filename

AFP_DataObjectResource.rat.

Some dataobjecttypessupportembedded ICCprofiles.Theseobjecttypesare TIFF, JFIF,GIF,andEPS.Whenan objectwith embeddedICCprofileisinstalled, theInstallercancopytheICCprofileinformationintoa CCCMRthatisthen associatedwith theobjectasanauditCCCMR.However,useofthisfunction requiresthattheUseProfileIndependentlyflagintheICCheaderofthe embedded profilebesettoB'0',indicatingthattheprofilemaybe used

independentlyofthedataobject.Anotheroptionof theInstaller,forthecasewhere theprofilemaybeusedindependentlyofthedataobject,istoactuallyextractthe embedded profilefromtheobjecttogenerateacompacted versionofthedata object. Thisiscontrolledbytheend-user,whoalsospecifies whetherto:

v Installonlytheoriginalobject

v Installonlythecompactedobject, inwhichcasethecompactedobjectcompletely replacestheoriginalobject

v Installboththeoriginalobjectandthecompactedobject

Ifbothare installed,theRATentryfortheoriginalobjectpointstothefilesfor boththeoriginalobjectandthecompactedobject.Itisrecommendedthatforthe compacted object,thefilenameisformedbyprependingiccr_ tothefilenameof theoriginalobject.Ifthecompactedobjecthasbeen installed,it isalways usedby theprintserverforperformancereasons,becauseitcanbe significantlysmallerin size thantheoriginalobject.Notethatwhenbothareinstalled,thecompacted objectisonlyavailable foruseinAFPsystemsbecauseitsfilenameisonly specified intheRAT.

The RATentryfora givendataobjectisdefinedsyntacticallywith arepeating group (RG).EachRGcontainsa length,aheader,and oneormoreself-identifying table vectors(TVs)thatspecifyprocessinginformation.Theheaderspecifies the object-typeOID forthedataobjectbeinginstalledanda setofflags thatare uniquetodataobjectRATRGs.ThefollowingTVsaredefined:

ObjectNameTV

Specifiestheobjectnamewith whichtheobjectisreferencedinthedata stream. ThisnameisusedasanindexintothedataobjectRAT.

FileNameTV

Specifiesthefilenamewith whichthedataobjectisinstalled.

ObjectOIDTV

SpecifiestheOIDwith whichtheobjectcanbecapturedbyaprinter.

Compacted ObjectFileNameTV

Specifiesthefilenamewith whichthecompacted objectisinstalled.

Compacted ObjectOIDTV

SpecifiestheOIDwith whichthecompacted objectcanbe capturedbya printer.

Rendering IntentTV

Specifiestherenderingintentthatistobe usedtopresenttheobjectorthe compacted object.

CMRNameTV

Specifiesa CMRthatistobe associatedwiththeobjectorthecompacted object.

CMRDescriptorTV

SpecifieswhethertheprecedingCMRistobeprocessedasan auditor instructionCMR.

ThedataobjectRATisindexed withanobjectname,whichismatchedagainstthe table vectorineachRGthatspecifies anobjectname. TheRGfora dataobjectis structuredasshowninTable6,Table7,and Table8 onpage20.

Table6.DataobjectRATrepeatinggroupheader

Length(bytes) Name Description

2 RGLngth Lengthofrepeatinggroup

1 Reserved Shouldbesettozero

1 RGTpe X'10'(RATrepeatinggroup)

2 RGFlgs Repeatinggroupflags:

v Bit1:RGcontainsCMRs thataretobeassociated withthedataobject v

Bit2:indicateswhether dataobjectisprivateor public

v Bit3:indicateswhether dataobjectmaybe embeddedina printfile-levelresource group

v Bit4:indicateswhether dataobjectmaybe capturedornot

v Bit5:indicateswhethera compactedobjecthasbeen generated

v Allotherbitsreserved

16 ObjTpe Object-typeOIDthat

identifiesthetypeofdata object;seeTable7.

Table7.DataobjecttypesforRATrepeatinggroup

Objecttype Object-typeOID

IOCAFS10 X'06072B120004010105'

IOCAFS11 X'06072B12000401010B'

IOCAFS45 X'06072B12000401010C'

EPS X'06072B12000401010D'

TIFF X'06072B12000401010E'

GIF X'06072B120004010116'

JFIF X'06072B120004010117'

PDFsinglepage X'06072B120004010119'

PCLsinglepage X'06072B120004010122'

IOCAFS42 X'06072B12000401012D'

EPSwithtransparency X'06072B120004010130'

Chapter4.InstallingdataobjectsusingtheAFPResourceInstaller 19

Table7.DataobjecttypesforRATrepeatinggroup (continued)

Objecttype Object-typeOID

PDFwithtransparency X'06072B120004010131'

IOCAFS40 X'06072B120004010137'

JPEG2000(JP2) X'06072B12000401013A'

Table8.DataobjectRATrepeatinggrouptablevectors(TVs)

TVType TVContent

ObjectNameTV Nameofthedataobject

FileNameTV Filenamefordataobject

ObjectOIDTV ObjectIDfordataobject

CompactedObjectFileNameTV Filenameforcompacteddataobject CompactedObjectOIDTV ObjectOIDforcompacteddataobject RenderingIntentTV Renderingintentfordataobject

CMRNameTV CMRnameforCMRtobeassociatedwith

thisobject;mayberepeated

CMRDescriptorTV Specifiestheprocessingmode(auditor instruction)fortheprecedingCMR;maybe repeated

The CMRName TVandtheCMRDescriptorTVmust occurinpairs;multiple pairs areallowedinaRG. TheCMRDescriptorTVspecifies whetherthepreceding CMRistobeprocessedasanauditorinstructionCMR.Similarinformationis carriedintheCMRDescriptor(X'91')tripletwhena CMRisreferenced inthe MO:DCAdatastream. Notethat,inorderforthemappedCMRstobeprocessed with thedataobject,theobjectmust bemappedasaresourceintheAEGofthe pageoroverlaythatincludesit.

Data objectscanbeinstalledwithoutthedataobjectinstaller.Inthatcase,color management informationcanbespecifiedforanobjectusinganumber ofalternate methods:

v CMRscanbereferencedintheOEG ofthedataobject.

v CMRscanbereferencedontheIOBthatincludesadataobject.Such CMRs completelyreplaceall CMRsthatarereferencedintheOEGof thedataobject;

Theyalsooverride anyconflictingCMRsthatare associatedwiththedataobject intheRAT.

v CMRscanbeinheritedbyadataobjectinaccordancewiththearchitected hierarchyforCMRprocessing.

v Colormanagementinformationmaybe embeddeddirectlyinthedataobject usingsyntax andsemanticsdefinedbytheobject. SeetheColorManagement ObjectContentArchitecture(CMOCA)Reference, S550-0511fora descriptionof howconflictsbetweenembeddedcolor managementinformationandobject-level CMRsareresolved.

Related documents