Skip to main content
Known Participant
Feb 24, 2018 6:24 AM UTC
Question

Convert to CMYK only (SWOP)

Im learning Javascript to help me with my pre-press automation.  Can someone tell me how to run the Preflight "Convert to CMYK only (SWOP)" with javascript? 

Thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.

20 replies

try67
Community Expert
Community Expert
Feb 24, 2018 10:04 AM UTC

The Document object has a method called preflight, which can execute any Preflight Profile. Read its documentation and see the example provided with it. If you still have questions after doing that, post back.

Translate
Known Participant
Feb 24, 2018 4:35 PM UTC

That much I found out before the post from this link: https://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat1…

But when I run the example in that page I get a syntax error.  Below is the example.

var oProfile = Preflight.getProfileByName("Magazine Ads")

if( oProfile != undefined )

{

var oThermometer = app.thermometer;

var myPreflightResult = this.preflight( oProfile, false, oThermometer);

if( myPreflightResult.numErrors > 0 ) {

console.println( "Preflight found " + myPreflightResult.numErrors + " Errors.");

} else {

console.println( "Preflight found no Errors.");

}

See snapshot.

Translate
try67
Community Expert
Community Expert
Feb 24, 2018 4:47 PM UTC

You're missing a set of closing curly brackets.

Translate