Skip to main content
Participant
June 3, 2016
Question

RGB to CMYK conversion using Acrobat's Javascript API

  • June 3, 2016
  • 1 reply
  • 1467 views

I am using Acrobat Javascript API to run a color conversion operation (this.colorConvertPage) but there is no option to mimic all the configurations available in the Color Convert dialog.

For "Preserve Black" I can use the preserveBlack option from colorConvertAction object. However, there is no option on colorConvertAction to do what  "Promote Gray To CMYK Black" does.

Using just Preserve Black all DeviceGray objects are mapped to rich blacks on CMYK, but using Promote Gray To CMYK Black does what I want, no rich blacks.

Any ideas?

This topic has been closed for replies.

1 reply

Legend
June 3, 2016

The color converting is a serious mess, because it has a considerable number of features covered only by either the dialog or JavaScript, but not both.

You may check whether the convert color Preflight fixup would work, and then you could create a Preflight profile which you can call using JavaScript.

Hope this can help.

Participant
June 3, 2016

Yes, it is really messy. I am looking to create a custom preflight fixup for this, it is the only way I see total control in this process.

Thanks,

Participant
December 29, 2016

Having exactly the same issue. Hundreds of unprintable PDF waiting for me to have them offset cmyk printable.

Unfortunately I did nof find a way to get the "Promote Gray To CMYK Black" option in any preflight fixup.

Anyone did??

Would really help!