Hello, 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? I should also note that I don't think the issue is with my Preset that I made, I've tried using the built-in [PDF/X-1a:2001] Preset as well in my script, which returns the same error. Thanks in advance! -Lloyd
Is there a way I can convert those app swatches to CMYK in my script? There are going to be times when we have documents with RGB graphics that need to be exported as a PDF using PDF/X-1a. It would be ideal if I could convert any that are RGB to CMYK before export.
I tried something like this, but no luck:
var myColors = app.colors.everyItem().getElements();
for (var i = 0; i < myColors.length; i++) {
if (myColors[i].space == ColorSpace.rgb) {
color.space = ColorSpace.cmyk;
}
}
Thats what I thought, but when my script specifies the built-in preset for PDF/X-1a like this:
myDoc.exportFile(ExportFormat.pdfType, myNewFile, app.pdfExportPresets.item('[PDF/X-1a:2001]'));
It fails on the server and I see this message:
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.
But I can run the script locally, exporting the exact same document using the exact same preset, and it works just fine?
North America
Europe, Middle East and Africa
Asia Pacific