Color conversion with -toPostScript

Hi,
does anybody know how to set the 'Let printer determine colors' switch when creating postscript with acrobat reader 9 from command line?
Thanks in advanvce

http://www.gif4j.com/java-color-quantizer.htm

Similar Messages

  • Color conversion with error diffusion

    Good day.
    I should must to be help to reduce the number of colors from 16M (true color) to 65k or 4096 or otthers.
    I know also the bits number of each destination color. number.
    I should want to use JAI.
    The source image have png format with 16M true color.
    Please, help me.
    Best regards.
    Stefano Errani

    http://www.gif4j.com/java-color-quantizer.htm

  • Color conversion : special behavior with Spot Color "All"

    Hello,
    I have a document with printmarks which have a spot color "All". While I convert the page using the "Color conversion" to Gray 1.8 with Adobe Acrobat X the spot color "All" are still present (with the alternate color space DeviceGray).
    Using Adobe Acrobat 9.x all objects have a DeviceGray color.
    Is it a bug or a new behavior? Moreover the SDK method doesn't convert the spot color but keep the name (but I know this is not the right place to post it - it's just for information).
    Regards,
    Joe

    I sense you may not understand the difference between sopt and process colors in the printing process.
    When you use process inks you build all color representations by combining dots of varying sizes from each of the four process colors, cyan, magenta, yellow, and black. Because the dots are two small to be seen individually your brain is fooled into thinking it sees other colors. Process color printing requires four printing plates to produce the full range of colors possible, but that range is limited compared to what you can see in real life or capture in RGB.
    Spot colors, in contrast, are similar to paint. Each color is mixed individually, and every spot color requires its own plate on the printing press (and you must use a press -- toner and inkjet printers use cmyk inksets and cannot print real spot colors). Because of the expense of these plates, the use of spot colors is usually limited to one or two colors in any print job, and if the job has other color (like photographs) that requires process inks, converting the spot colors to the closest process simulation is often employed if the spot colors can be simulated "close enough" to satisfy the client and the budget is tight.
    I would avoid using process colors for type in small sizes or for very thin strokes, especially in lighter colors, as you are likely to see ragged edges.
    So, how many spot color swatches did you use? More than two? More than four? Do you have a huge budget to produce the work? This may be a project that really should be designed from the ground up as process, or process and one spot for that hard to print bright accent color.

  • Color Picker with Pantone conversion

    In Photoshop you can sample an area with the eyedropper, click on the swatch in Color Picker and have it give you the PMS equivalent from the "book" list. I would love the same feature in Illustrator.
    It makes more sense to have the spot color conversion capability in the the program designed for spot color use.
    Thanks!
    -Danlyn

    CS3
    Art containing two non-global process colors has been selected, and the Live Color dialog opened:
    Below, the Pantone solid coated library has been selected from the Limit to Library popup menu, which causes an immediate lookup of the closest matching color in the library to
    every color in the selected art
    (notice that the brown is a tiny bit redder and the green a little yellower, showing you that the replacements have happened):
    The sliders above have also been switched to Tint and a new color group was created by clicking on the little folder with the + sign above the color group list. These two steps are not necessary, I just wanted to show that they were possible. Also it was the best way to display the names of both Pantone colors.
    If all you want to do is recolor your document with the same number of Pantone colors that your design uses distinct mixed colors, you're done!
    All the rest of this post is just showing more variations of what you can do, especially reducing the number of spot colors used when the original document has more color variation than you want.
    Here I have switched to the metallic library:
    If the selected art had contained more original colors than desired number of spot colors, then you can enter the number of desired spot colors to reduce to, and it will pick the best color set of that size from the chosen library to "posterize" to, as shown below:
    After reduction to two colors:
    After limiting to ANPA library:
    Next I've switched to the Color Wheel view, and rotated the color markers to a different position. When limiting to a library, the entire color wheel is drawn using only the colors in that library, so that you can easily navigate to nearby colors:
    Swatches from Color Books and other libraries can be accessed in the Color Picker, but only when it is opened from within the Live Color dialog (by double-clicking on any color well) while limiting to that library. This gives you another method of picking a different color if you don't like the default match.
    There is not yet any ability to switch libraries while the Color Picker is open, but we hope to enable that in CS4.

  • RIP with same color conversion as Adobe

    Hi
    for the color conversion of our images and pdfs we use Photoshop and Idesign (What I´m talking about here is to put an input profile, a rendering intent, and a output profile).
    99,99% of the time we use relative colorimetric with black point compensation to do the conversion. So we use those 2 applications as if they were rips.
    I must say that we are very happy with the results.
    What we are looking for right now is trying to automate that process.
    We have been using a rip called Colorgate Productionserver 7. This rip have hot folder workflow (wich is what we want) BUT the color conversion is not the same as the one that Photoshop and Indesign have (using the same input profile, rendering intents and output profile).
    We have been doing much testing with rgb images and we don´t like how this rip converts the images to the output profile.
    It leaves the pure blacks a little bit more washed out than what the Adobe conversion would do and also if you send the image as a tiff file the rip respects the rendering intent of that queue and converts the image accordingly but when you send that SAME image inside a pdf (whether is cmyk or rgb) the rip WILL ALWAYS use the relative colorimetric conversion (without black point compensation) to do the color conversion regardless of the rendering intent that you have in that queue. Indesign honors embedded profiles, rendering intents and output profiles perfectly.
    So what we are looking for is a hot folder-queue based rip that have a color conversion really similar (or the same if possible) as the one of Photoshop or Indesign and have the black point composition option in the rendering intent menu.
    I don´t know if Adobe has a similar product or if it has licensed it´s color management to anyone.
    Thank you
    Palodislow

    Hello Palo,
    Colorgate has announced, that Productionserver 8  'utilizes the latest Adobe PDF Print
    Engine (APPE) by default':
    http://www.colorgate.com/en/rip-software/rip-software/productionserver-8.html?aktPos=20
    May be you'll get then the desired 100% compatibility...
    I am using version 6. I could stabilize my processes by simplifying the workflows for PDFs.:
    Just one color space for RGB images, just one color space for CMYK components,
    explicit assignment of the two profiles, explicit assignment of the two rendering intents.
    No use of embedded profiles and hopefully no use of InDesign's general color settings,
    which may be in contradiction to the settings in Productionserver. My InDesign PDFs
    are generally made for Leave Colors Unchanged.
    I had discussed some issues with Colorgate: printing of Lab components and printing
    of images by K-only (black and gray inks). The company is cooperative, but it's obviously
    impossible to clarify the extremely complex workflows just by post and e-mail.
    My experiences, which are as well based on two other RIPs (years ago), are laid down
    here, a preliminary version finished just now:
    http://docs-hoffmann.de/cmsflow03072013.pdf
    Please contact me eventually by private e-mail (last page of doc).
    Best regards --Gernot Hoffmann

  • [AS][INDCC] How to set Color Conversion field to No Color Conversion when creating PDF Export preset

    How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.

    Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
    tell application "Adobe InDesign CC"
         set newPreset to make new PDF export preset with properties ¬
              {name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
         tell newPreset to set PDF color space to unchanged color space
    end tell

  • CMYK to RGB color conversion?

    Hi,
    I have to convert CMYK color array in the RGB color space and vice versa.
    I am  using the following code;-
    UID colorUID = iDrawing->GetColorUID(kFalse);
    UIDRef colourUIDRef(iDrawing->GetDataBase(), colorUID);
    InterfacePtr<IColorData> colorData(colourUIDRef, UseDefaultIID());
    char
    strColor[16]={0};
    if(colorData->GetColorSpace() == kPMCsCalRGB)
        ColorArray rgbColor = Utils<IUIColorUtils>()->GetRGBColorValue(m_DB, colorUID);
        sprintf(strColor,
    "#%.2x%.2x%.2x", ToInt32(rgbColor[0] * 255), ToInt32(rgbColor[1] * 255), ToInt32(rgbColor[2] * 255));
    else
        ErrorCode errStatus = GetRGBColorStr(colourUIDRef, strColor);
    ErrorCode GetRGBColorStr(UIDRef colourUIDRef,
    char* strColor){
        ErrorCode status = kFailure;
        do 
              I
    nterfacePtr<IColorData> colorData(colourUIDRef, UseDefaultIID());          IDataBase* m_DB = colourUIDRef.GetDataBase();
    // If color sapce is other then RGB then get the colour array
        ColorArray colourArray = colorData->GetColorData();
        // If the colour space is CMYK then convert it to RGB
        if(colorData->GetColorSpace() == ICMSProfile::kSourceTypeBuiltInCMYK)    {
              IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
              ColorArray rgbColor = Utils<IColorSystemUtils>()->ColorTransform( document, colourArray, ICMSProfile::kSourceTypeBuiltInCMYK,ICMSProfile::kSourceTypeBuiltInRGB);
         sprintf(strColor,
    "#%.2x%.2x%.2x", ToInt32(Round(rgbColor[0] * 255)), ToInt32(Round (rgbColor[1] * 255)), ToInt32(Round(rgbColor[2] * 255)));     status = kSuccess;
    }while(kFalse);
    return status;
    }while(kFalse);
    return status;

    I did some experiments with Illustrator CS6 and the MacBeth RGB test chart and verified my results with Photoshop CS6. I discovered Illustrator is (mostly) doing what it should be doing, within a 1% error (probably rounding) on the output CMYK values. Here's a summary, in case anyone else needs this info:
    Assuming the source file's elements are all untagged, when a mixed RGB/CMYK PDF is opened in Illustrator and CMYK mode is
    chosen, Illustrator will use the profiles and rendering intent defined in
    Color Settings to make the color conversions from RGB to CMYK. Thus, we
    have control over the profiles used for this conversion.
    If the RGB elements in the PDF file have embedded ICC profiles,
    Illustrator will use the embedded ICC profile instead of the RGB profile
    defined in Color Settings. This ONLY happens, however, if the PDF file
    also includes the correct CMYK output intent profile.
    If the PDF doesn't contain a CMYK output intent, Illustrator will fall
    back on the Color Settings RGB profile for RGB->CMYK conversion. I believe it
    would be more correct for Illustrator to use the embedded RGB profile and
    the CMYK profile defined in Color Settings, but that's not how it seems to work.
    If the PDF contains the incorrect CMYK output intent, Illustrator will
    ignore the Color Settings and respect the embedded RGB and CMYK profiles
    for the conversion, as might be expected.

  • How can i open the "Convert to Indexed Color" dialog with custom presets?

    Hi,
    I need to automatically open the "Convert to Indexed Colors" dialog in Photoshop. Before and after that i have some scripts running so its not possible to open the dialog manually. Also i want to set some custom presets (like number of colors etc.).
    Found something similar to what i want for the Color Range selection (opens the dialog with the presets you put in):
    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
    How can i achieve the same for the indexed color conversion dialog? Apart from doing a lot of guessing regarding the stringIDs.
    Is there some kind of "lookup table" for char and string IDs?
    Thank you guys in advance! This forum has been a great help many times.

    Ok never mind i got it, stupid me.
    Recorded it with Script Listener and changed the "DialogMode" parameter of the executeAction function from "DialogModes.No" to "DialogModes.All".
    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL

  • DNG & Camera Manf. JPG color conversions

    IF, a Camera Manf. had a camera that outputs to DNG ... could they imbed in the DNG file ... the "equivelent" of LR "pre-sets" for "there" JPG Color conversion.
    * So, In LR at a click of a Pre-set listing you could see what the Camera Manf. JPG out of the camera would be like. (if you "would have" shot this DNG in JPG) ... and then you could do a compair.
    Or maybe you would "just" run it as a choice on import ... as a starting point, or when in a rush a result.
    * Just curious ... could this be done?
    Is it only me, or could this be a useful productivity feature for LR.
    p.s. I do get the fact that you could make your own pre-sets for your camera.

    > "being a designer/distributor myself you are always trying to find ways to make your product (output) different and exclusive ... so yes, having a Generic DNG and making "my" product/output a commodity would not be my first choice either".
    I used to help design large, complicated, multi-supplier computer systems. I sometimes got involved with helping to procure products.
    The suppliers would try to make us enthusiastic about their special features. If we procured their products, we would often simply lose those features under an abstraction layer of software - they were unwanted! We needed interchangeable components. Call it "commodity" if you like - but I don't really agree with that term here. "Commodity" to me implies that it doesn't matter which you choose. "Interchangeable" still leaves other factors to be taken into account.
    If Nikon adopted DNG (chuckle!) we wouldn't really claim that a D40 and D80 and D200 and D2Xs were "commodity"! They would still be high quality high value differentiated products.
    In fact, camera manufacturers are pretty foolish if they adopt such an attitude. Within weeks of camera launch, all the major raw converter suppliers have reverse-engineered the raw files and camera details enough to be able to perform high quality raw conversions. All essential aspects of the specification are known, and sometimes even published by 3rd parties!
    Who do the camera manufacturers think they are hiding information from? Answer: "from 3rd party software companies whose mission is, in effect, to make the images from the camera look as good as possible"! How stupid can camera manufacturers be?
    DNG still has ways for camera manufacturers to hold what Adobe call "secret sauce". There may well be limitations in the current specification of DNG that causes problems for some manufacturers - Hasselblad-Imacon apparently had problems. But most manufacturers almost certainly have no such problems - and Pentax shows what CAN be done by a camera manufacturer, (the one who once tried to promote the idea of a universal lens mount), that cares about its users and sees the way the world is moving.

  • Printing RGB colors - Conversion to CMYK?

    Hi,
    I have been working for a little while in converting my old RGB colors to CMYK printer friendly colors.
    However, I carefully choosed my printing friendly CMYK colors to be as close as possible to the RGB colors but the prints are dull !
    On the other hand, when I print my file withj RGB colors using the PDF Distiller tagged with Adobe1998 profile and send the file to the printer, colors look smarter !
    It means that the CMYK colors I picked myself are not good enough anf the Color Managment in Adobe PDF or Illustrator are better than me ! As follows:
    - In Illustrator -> Print -> Color Management tab -> Color Handling: Let Illustrator determine colors
    - in Acrobat Reader -> Print -> Color Management tab of the plotter: Application managed colors
    Both ouput similar quality prints, and better than my own CMYK colors !
    Are the Application Color Management engines in Illustrator and in Adobe Reader similar in their conversion?
    How can I find out which are the CMYK colors printed when the application (Reader or Illustrator) manages colors, from my initial RGB colors? I would like to use them directly in my document...
    Thanks

    Hi,
    Thanks for your response. I put these color issues on hold because I had no time to search more on that recently...
    However, I have still lots of questions about color conversion!
    When I said "carefully choose" CMYK colors, it means CMYK colors printable and which look similar to my old RGB colors on-screen. But of course, screen is not enough!
    What I noticed is that when I print my old RGB colors (not in printer color space), Adobe Reader or Illustrator were able to make good conversion to CMYK for printing.
    Now, I would like to find out to which CMYK color codes Adobe Reader or Illustrator converted my RGB colors? Then, I would be able to use these CMYK color codes directly in my application...
    Is there any way to find out that?
    Cheers

  • RAW conversion with Aperture

    Has anyone compared the quality of RAW conversion of Aperture vs. Nikon Capture as well as other converters?
    I really like the quality of nikon capture and would not want to purchase aperture unless the conversion was at least equivalent.
    Thanks for any input.
    mark
    G4 17" Laptop   Mac OS X (10.4.3)  

    I've compared Aperture's conversion side by side with Adobe Camera Raw's. My method was to do some conversions with Camera Raw and save the result along with the RAW file. Then, in the Apple Store, I performed the conversions using Aperture.
    The results from Aperture are not good. They look okay at reduced size, but if you look more closely, the de-mosaicing Aperture performs is quite bad. On some images it is only "somewhat" worse than Camera Raw; on others it is so bad as to be unusable. Shadow detail suffers the most, but highlights are not immune. Some images showed color fringing that was not present in the Camera Raw conversion, even with all chromatic aberration adjustments set to zero in Camera Raw.
    I ignored differences in color and tonal rendering because I did not have enough time with Aperture to learn to get the best results out of it in terms of color. It takes a while to figure out how to get good color out of a RAW converter.
    In no case was Aperture as good as Adobe Camera Raw in terms of image quality. The difference was immediately obvious at 100% magnification.
    I would not use Aperture for RAW conversion.
    EDIT: I forgot to mention, in case it matters, my camera is a Nikon D2X.

  • Color Difference with Indesign versions

    Has anyone experienced any color difference breakdowns between CS3 and CS4? We just noticed it with a file that we created within CS4 and saved out to CS3.inx that the colors shift. We checked the color settings and both programs are set with the same working space profiles. Any other suggestions what would cause this? The colors were not built with Pantone colors therefore should eliminate the Pantone library

    The Color Settings’ Working Spaces don't necessarily color manage the document—if there's a profile assigned to the CS3 document, that profile takes precedent over the Working CMYK Space. So, you have to check the document's assigned CMYK space (Edit>Assign Profiles...), if that is something other than GRACol2006_Coated1v2 you would expect to get a conversion when you open the file in CS4 with the Color Settings you are using.
    If you don't want CMYK color conversions when you open the file, either remove the assigned profile (Edit>Assign Profiles...Discard (Use Current Working Space)) before opening in CS4, or stop using Convert to Working Space as your CMYK Policy. Convert to Working Space is rarely an appropriate policy—unless you routinely need to repurpose jobs for new printing conditions—even then it's not a great idea because it's easier to make the conversion when you export to PDF or print.

  • Choosing profiles for forced RGB to CMYK color conversion

    When a mixed RGB/CMYK PDF is opened in Illustrator CS6, Illustrator forces a conversion to one color space or the other. See this screenshot: http://imgur.com/sK8iEdn
    I assume this is a limitation of Illustrator and there's no way to keep both color spaces. Under that assumption, Is it possible to choose the profiles used for the conversion from RGB to CMYK? Can Illustrator be made to use the RGB and CMYK profiles defined in its Color Settings to make this conversion?

    I did some experiments with Illustrator CS6 and the MacBeth RGB test chart and verified my results with Photoshop CS6. I discovered Illustrator is (mostly) doing what it should be doing, within a 1% error (probably rounding) on the output CMYK values. Here's a summary, in case anyone else needs this info:
    Assuming the source file's elements are all untagged, when a mixed RGB/CMYK PDF is opened in Illustrator and CMYK mode is
    chosen, Illustrator will use the profiles and rendering intent defined in
    Color Settings to make the color conversions from RGB to CMYK. Thus, we
    have control over the profiles used for this conversion.
    If the RGB elements in the PDF file have embedded ICC profiles,
    Illustrator will use the embedded ICC profile instead of the RGB profile
    defined in Color Settings. This ONLY happens, however, if the PDF file
    also includes the correct CMYK output intent profile.
    If the PDF doesn't contain a CMYK output intent, Illustrator will fall
    back on the Color Settings RGB profile for RGB->CMYK conversion. I believe it
    would be more correct for Illustrator to use the embedded RGB profile and
    the CMYK profile defined in Color Settings, but that's not how it seems to work.
    If the PDF contains the incorrect CMYK output intent, Illustrator will
    ignore the Color Settings and respect the embedded RGB and CMYK profiles
    for the conversion, as might be expected.

  • OLE Color Conversion

    I became acorss the function below.  What is the relationship between OLE and RGB color?  Can you give me some background on them?  For the function below, is the input supposed to be OLE or RGB?  Thanks!
    Convert OLE Color VI
    Owning Palette: 3D Graph Properties VIs
    Requires: Base Package (Windows)
    Converts LabVIEW colors to or from colors used by ActiveX.
    You can use the property page for the 3D graph to set all of the colors. Color conversion is necessary for use with ActiveX Property Nodes.
    Kudos and Accepted as Solution are welcome!

    If you would read throught he examples and source code you would have found your answer! MSDN has to say this http://msdn.microsoft.com/en-us/library/windows/desktop/ms694353%28v=vs.85%29.aspx. Basically if the MSB is 0, the other 3 bytes are directly RGB colors, otherwise they are either a system color index or palette index. The LabVIEW Color is built in a similar way, but the meaning of the MSB is different.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Color Conversion for all Elements

    Hi,
    I am writing some plug in which can convert Color of the PDF for that i have used "PDDocColorConvertPage" it is perfectly working well for Grayscale Conversion, But the same method is not working for the Pantone (SpotColor) to CMYK conversion, so i tried with PDColorConvertPDEElement it is also not working,I don't find any Code sample to use that function. I was blocked, please help me out to find the best method for color conversion problem.
    Regards,
    Kumar.K

    I am using Acrobat 9, Here i am giving the code which working now, in that my objective is to change all the elements to Grayscale, but i am sure that i did some mistakes, Please let me know where i made the mistake
    Code:
    AVDoc avDoc = AVAppGetActiveDoc();
    char str[256];
    ASPathName aoPDFPathName = NULL;
    char* OutputPdfFileName = "C:\\Output.pdf";
    ASText pathText = ASTextNew();
    ASFileSys aoFileSys = NULL;
    pathText = ASTextFromScriptText(OutputPdfFileName, kASRomanScript);
    aoFileSys = ASGetDefaultFileSysForPath(ASAtomFromString("ASTextPath"), pathText);
    if(avDoc==NULL)
    sprintf(str,"There is no PDF document loaded in Acrobat.");
    else
    PDDoc pdDoc = AVDocGetPDDoc (avDoc);
    int numPages = PDDocGetNumPages (pdDoc);
    ASInt32 ai, aiNumElems;
    PDEContent aoPDEContent = NULL;
    PDEElement aoPDEElement;
    PDPage aoPage = NULL;
    aoPage = PDDocAcquirePage(pdDoc, 0);
    aoPDEContent = PDPageAcquirePDEContent(aoPage, 0);
    aiNumElems = PDEContentGetNumElems(aoPDEContent);
    sprintf(str,"The active PDF Page has %d Elements.", aiNumElems);
    AC_Profile prof;
    ACProfileFromCode(&prof, AC_Profile_DotGain15);
    for (ai = 0; ai < aiNumElems; ai++)
    aoPDEElement = PDEContentGetElem(aoPDEContent, ai);
    PDColorConvertPDEElement(pdDoc, aoPDEElement, prof, AC_UseProfileIntent, true);
    if (aoPDEContent != NULL){
    PDPageReleasePDEContent(aoPage, 0);
    // inform the user if we have done a color conversion.
    if(ASBoolToBool(gbConverted) == true)
    AVAlertNote("Color transform has been done to Gray");
    else
    AVAlertNote("No color transform was made.");
    aoPDFPathName = ASFileSysCreatePathName (aoFileSys, ASAtomFromString("ASTextPath"), pathText, 0);
    PDDocSave (pdDoc, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized, aoPDFPathName, ASGetDefaultUnicodeFileSys(),NULL, NULL);
    PDDocClose (pdDoc);
    ACUnReferenceProfile(prof);
    Thanks,
    Kumar.K

Maybe you are looking for