11 Replies Latest reply on Aug 9, 2012 1:45 PM by Rick E Johnson

    [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error

    lhanneman Level 1

      Hello,

       

      I'm not sure if this would belong in the scripting or server forum, so let me know and I can create a new thread there. I'm trying to create a new PDF Export Preset that specifies the PDF/X-1a:2001 standard. All I'm trying to test with is a brand new document with all default values. It works fine if I use my preset in my desktop InDesign, however, if I run a script that attempts to export the same exact document on our InDesign Server, I get an error "warning" which causes the script to fail:

       

      WARN [Server] Color in one or more placed graphics cannot be represented as CMYK. Non-CMYK color is not compliant with the PDF/X-1a standard. You can click OK to produce a valid PDF, but it will not be a PDF/X-1a compliant file.

       

      So my question would be, 1) what part of a blank document is not CMYK compliant? and 2) is there a way to force a conversion of anything non-CMYK to CMYK?

       

      Thanks in advance!

      -Lloyd

        • 1. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
          Peter Spier Most Valuable Participant (Moderator)

          Do you have any indexed color swatches or styles that might be using indexed color in the doc?

          • 2. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
            lhanneman Level 1

            Thanks for the reply.

             

            I'm really not sure about the swatches. We did find, however, that the error doesn't happen on our Live InDesign Server. The problem I've described, only happens on our development server which applies a watermark to every exported pdf, jpg, etc. We've concluded that it must be the watermark causing the non-CMYK warning. Have you ever heard anything about that?

             

            What seems odd to me is that I thought the PDF/X-1a standard automatically converts anything non-CMYK to CMYK? Maybe that isn't the case.

             

            Thanks again!

            • 3. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
              Peter Spier Most Valuable Participant (Moderator)

              I expect the watermark is applied AFTER the PDF is created. In order to be included inthe export it would need to be in the ID file. Is there a watermark file someplace?

              • 4. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                rob day Adobe Community Professional & MVP

                I've seen PDF/X-1a warnings associated with certain versions of color profiles. When you get the warning is there an option for getting more info? What destination profile are you using?Does it happen with the default Color Settings preset?

                 

                if I run a script that attempts to export the same exact document on our InDesign Server, I get an error "warning" which causes the script to fail:

                 

                You should be able to stop any dialogs inside of the script. With AppleScript you would add this line at the beginning:

                 

                set user interaction level of script preferences to never interact

                 

                and then turn interaction back on at the end with this:

                 

                set user interaction level of script preferences to interact with all

                • 5. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                  rob day Adobe Community Professional & MVP

                  For example I get this when a use the SNAP 2007 newsprint profile as the CMYK destination. When I ignore the warning the exported PDF looks fine and its CMYK values are correct.

                   

                  Screen shot 2011-09-16 at 6.37.46 PM.png

                  • 6. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                    lhanneman Level 1

                    @rob, thanks for the reply.

                     

                    I'll check into the color profiles, but there isn't an option to get more info. The exact, and full, warning message is stated in my original question.

                     

                    As for the user interaction level for the script, that does work if I run the script locally in my desktop InDesign, but the script fails when run on our InDesign server because there isn't a user interaction level on the server.

                     

                    I'd really prefer not to just ignore the warnings as it states "it won't produce a PDF/X-1a compliant file". My hope is to find a way that will fully convert anything non-CMYK to CMYK so even if it is that watermark (which I have no idea where that would be stored on the server, @Peter) we can just convert it too.

                     

                    Thanks again!

                    • 7. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                      Rick E Johnson Level 1

                      I'm getting the same error using ID CS5 also, but under different circumstances.

                       

                      An AppleScript exports a PDF for print using the X-1a preset, and works once without an error. Next it outputs a PDF for digital editions using a preset for Zinio, again error-free. Next the script outputs the next page using the X-1a preset and then I get the error with every remaining X-1a export. When exporting manually, we get the error dialog. When using a script, which we greatly prefer to allow us to batch process files and save hours of tedious work, the export line returns error -128, thinking the user has cancelled, and does not export the PDF. It's as though something remained stuck in InDesign's memory and the X-1a preset info didn't fully repopulate InDesign's internal data.

                       

                      Is there a way for a script to clear that memory before applying the preset? Or is there a known field in other presets that doesn't get updated when the X-1a preset is reapplied? I really don't want to resort to something like quitting and restarting InDesign between every page of every publication just so ID loads the X-1a preset correctly.

                       

                      Any suggestions would be much appreciated!

                      • 8. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                        rob day Adobe Community Professional & MVP

                        Are you using the default PDF/X-a preset without any alterations? What's the document CMYK profile?

                         

                        Does the script work if you stop user interaction dialogs? Something like this:

                         

                         

                        tell application "Adobe InDesign CS5"

                            set user interaction level of script preferences to never interact

                            --code

                            set user interaction level of script preferences to interact with all

                        end tell

                        • 9. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                          Rick E Johnson Level 1

                          Thanks, Rob,

                           

                          This helps. The "never interact" option is where I got the "-128 user cancelled" error. I can't use "interact with all" because we need the script to run unattended.

                           

                          I was told that our variant of the default X-1a preset changed only the marks and bleeds, but I'll dig deeper because using the default preset, the error doesn't occur. It also didn't occur with CS4, only CS5, and oddly works perfectly only until using an RGB PDF output, but at least I now have ideas for a workaround.

                           

                          Thanks,

                           

                          Rick

                          • 10. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                            rob day Adobe Community Professional & MVP

                            I was told that our variant of the default X-1a preset changed only the marks and bleeds, but I'll dig deeper because using the default preset, the error doesn't occur.

                             

                            How about if you make a new preset based on the default X-1a but make the one cropmark change? Maybe the preset that creates the error has been corrupted.

                            • 11. Re: [CS5] Exporting PDF with PDF/X-1a:2001, get CMYK Error
                              Rick E Johnson Level 1

                              Experimentation showed that when a document is closed and re-opened, the PDF preset works again, at least until after InDesign has exported the next page that includes indexed color. Several times during the process of exporting PDFs from a publication, there may be a flashing on the screen as a document re-opens, but the process can continue unattended again. Thanks again for your suggestions. -- Rick