Skip to main content
Known Participant
February 24, 2018
Question

Convert to CMYK only (SWOP)

  • February 24, 2018
  • 1 reply
  • 1842 views

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 has been closed for replies.

1 reply

try67
Community Expert
February 24, 2018

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.

Known Participant
February 24, 2018

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.

try67
Community Expert
February 24, 2018

You're missing a set of closing curly brackets.