Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6020305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:32:55+00:00 2026-05-23T03:32:55+00:00

This is related to: Converting PDF to CMYK (with identify recognizing CMYK). Script (or

  • 0

This is related to:

  • Converting PDF to CMYK (with identify recognizing CMYK).
  • Script (or some other means) to convert RGB to CMYK in PDF?

… but a bit more specific here: say I have an RGB PDF, where the text color is “rich black” (R:0 G:0 B:0 gone to C:100 M:100 Y:100 K:100), and diverse images and vector graphics.

I would like to convert this to a CMYK PDF, using a free command line tool (so it is batch scriptable under Linux), which

  • has contents only in the black (K) channel:
    • Preserves vector graphics (+ text glyphs) – colors become grayscale in black (K) channel only
    • Images get converted to grayscale in black (K) channel only

Thanks in advance for any answers,
Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:32:55+00:00Added an answer on May 23, 2026 at 3:32 am

    As hinted in my comment to @Mark Storer, it turns out that forcing a gray print only on the K plate in CMYK, may not be so trivial … I guess it depends much on what is being used as “preflight” preview device – for Linux, the only thing I can find is ghostscript with tiffsep, which is what I use for ‘sanity check’ regarding CMYK separations.

    Anyways, I got a lot of help in this thread on comp.lang.postscript:

    • PDF to PDF (gs?): rich RGB black to plain K (CMYK) black? – comp.lang.postscript | Google Groups

    … and one workflow that works for me is:

    • Convert PDF to PS using ghostscript‘s ps2write
    • Use ghostscript to convert this PS back to PDF, while executing replacement functions in HackRGB-cmyk-inv.ps
    • Use ghostscript‘s tiffsep to check actual separations

     

    In respect to, say, this PDF generated by OpenOffice: blah-slide.pdf, the command lines would be:

    # PDF to PS using `ps2write` device of `ghostscript`
    gs \
       -dNOPAUSE \
       -dBATCH \
       -sDEVICE=ps2write \
       -sOutputFile=./blah-slide-gsps2w.ps \
        ./blah-slide.pdf 
    
    # PS to PDF using replacement function in HackRGB-cmyk-inv.ps
    gs \
       -dNOPAUSE \
       -dBATCH \
       -sDEVICE=pdfwrite \
       -sOutputFile=./blah-slide-hackRGB-cmyk-inv.pdf \
        ./HackRGB-cmyk-inv.ps \
        ./blah-slide-gsps2w.ps
    
    # check separations
    gs \
       -dNOPAUSE \
       -dBATCH \
       -dSAFER \
       -sDEVICE=tiffsep \
       -dFirstPage=1 \
       -dLastPage=1 \
       -sOutputFile=p%02d.tif \
        blah-slide-hackRGB-cmyk-inv.pdf \
    \
    && eog p01.tif 2>/dev/null 
    

    This should only work on RGB values where R=G=B (and hopefully grayscale values), and only on text colors, and it also flattens text information – but it should be possible to confirm via tiffsep that the text indeed ends up only on the K plate.

    As mentioned in the newsgroup post, this is not extensively tested, but looks promising so far…
    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is related to some other questions, such as: this , and some of
This is related to the this question and the answer maybe the same but
This is related to a question I asked the other day on how to
This is related to my earlier question , but I thought I'd simplify it
[This question is related to but not the same as this one .] My
This is specifically related to the Google App Engine Memcache API, but I'm sure
This is related to my previous question , but it seems I have another
The answers to this related question of mine lead me to choose Java for
This is related to the accepted answer for What’s your #1 way to be
(This is related to Floor a date in SQL server .) Does a deterministic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.