OutputIntents and IccProfile

OutputIntents and IccProfile

Forum member · Apr 17, 2007
i'm using code right out of the documentation, except for the MapPath, which *does* resolve to a profile. IccProfile iccProfile = new IccProfile(Server.MapPath("./ICC/AdobeRGB1998.icc")); doc.Prepress.OutputIntents.Add(iccProfile); and ending up getting compile errors: The best overloaded method match for 'ceTe.DynamicPDF.OutputIntentList.Add(ceTe.DynamicPDF.OutputIntent)' has some invalid arguments Argument '1': cannot convert from 'ceTe.DynamicPDF.IccProfile' to 'ceTe.DynamicPDF.OutputIntent' thanks, marc

Re: OutputIntents and IccProfile

Support · Apr 17, 2007
Hello Marc, You will have to add the existing output profile by following the steps below: IccProfile iccProfile = new IccProfile(Server.MapPath("./ICC/AdobeRGB1998.icc")); Then create an OutputIntent object and then using the SetDestOutputProfile() method of the OutputIntent object set the ICC Profile. You can also use he OutputIntent constructor that accepts the ICC Profile as the parameter. IccProfile iccProfile = new IccProfile(Server.MapPath("./ICC/AdobeRGB1998.icc")); OutputIntent outputIntent = new OutputIntent( "CGATS TR 001-1995 (SWOP)", "CGATS TR 001", "http://www.color.org", "U.S. Web Coated (SWOP) v2", iccProfile ); document.Prepress.OutputIntents.Add( outputIntent ); We will rectify the code in the Help Documentation. Thanks, ceTe Software Support Team