Page 1 of 1

PDF to PS or PDF to PDf

Posted: 2019-01-23T11:22:41-07:00
by rmschoen
We are in the process of replacing our Unix servers with Linux servers. One of our Unix c-shell scripts calls acroread to extract a PS file from a PDF. Then we place the PS file in watch folder to make a downsampled PDF file which will be attached to an email message and sent to the author of the article. I am now trying to duplicate this process on our new Linux server. As there is no Linux version of Acrobat, I need to use some other application. I have tried using ImageMagick and it works fine on PDFs that do not contain color (CMYK) images. If the original PDF does include CMYK images then the resulting PS file looks like a negative of the original. Is there some combination of ImageMagick command line options that will give me the output I want? Or perhaps some application that will allow me to convert PDF to downsampled PDF?

Any help will be greatly appreciated.

Thanks,
Rick

Re: PDF to PS or PDF to PDf

Posted: 2019-01-23T11:56:39-07:00
by snibgo
ImageMagick delegates the work of rasterizing PDF files to Ghostscript. I don't know if GS can do what you want, convert embedded CMYK inages to RGB. I suggest you paste a link to a PDF with embedded CMYK image, so people can test.

Re: PDF to PS or PDF to PDf

Posted: 2019-01-24T09:56:02-07:00
by rmschoen
You can access my sample PDF here: https://www.dropbox.com/l/scl/AAA-RzigK ... XGlKNXahx0

Rick