LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to erase ICC profile from PDF? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-erase-icc-profile-from-pdf-871107/)

KamasCZ 03-26-2011 06:19 AM

How to erase ICC profile from PDF?
 
I'm using Apache FOP to create pdf files. I need to create pdf for press printing.
The only problem I have is, that created pdf is with some ICC profile and press company cannot simply change it in press SW. They must simply open file in adobe acrobat and save it without ICC profile.

I also tryed to use ghostscript ps2pdf - it produces much smaller output than FOP but sitll with ICC.

Or course, the ideal way is to create PDF in CMYK, but I think the ICC profile must still go avay and most of the press companies can solve this.

Does anyone here solved similar problem?

Also, all this is done on Slackware Linux server that haven't X installed. X libs are present, of course, but no graphic environment.

corp769 03-26-2011 07:29 AM

From the imagemagick man page:
Quote:

-profile <filename>
add ICM, IPTC, or generic profile to image

-profile filename adds an ICM (ICC color management), IPTC (newswire information), or a generic profile to the image.

Use +profile icm, +profile iptc, or +profile profile_name to remove the respective profile. Use identify -verbose to find out what profiles are in the image file. Use +profile "*" to remove all profiles.

To extract a profile, the -profile option is not used. Instead, simply write the file to an image format such as APP1, 8BIM, ICM, or IPTC.
http://linux.about.com/library/cmd/b...mageMagick.htm

KamasCZ 04-04-2011 11:50 PM

Quote:

Originally Posted by corp769 (Post 4304098)

Thank you for your answer, but ImageMagis is not an option for me, because it converts whole pdf to one image. I have mixed pdf with vectors and images.
I can use ghostscript or apache fop.

corp769 04-05-2011 06:39 AM

Hmmm.... Something like this maybe? http://janerob.com/rob/piccel/

KamasCZ 04-05-2011 09:14 AM

Quote:

Originally Posted by corp769 (Post 4314438)
Hmmm.... Something like this maybe? http://janerob.com/rob/piccel/

It is GUI based, I need something that can be run from cmd line, like ghostscripts ps2pdf or fop.

Guttorm 04-05-2011 09:25 AM

Hi

I don't know of any open source program that can do this, only expensive programs like pdf toolbox and pdf enhancer. It's not an easy task because a PDF can contain many pictures, with different color profiles and even different color spaces.

But fop seems to have a way to control this. I never tried it, but here is some info:

http://xmlgraphics.apache.org/fop/0....l#pdf-renderer

KamasCZ 04-05-2011 11:49 AM

Quote:

Originally Posted by Guttorm (Post 4314592)
Hi

I don't know of any open source program that can do this, only expensive programs like pdf toolbox and pdf enhancer. It's not an easy task because a PDF can contain many pictures, with different color profiles and even different color spaces.

But fop seems to have a way to control this. I never tried it, but here is some info:

http://xmlgraphics.apache.org/fop/0....l#pdf-renderer

"seems to have" is exactly what I found, but it's not working to me. Generated PDF is only 11 bytes smaller with this option.

Guttorm 04-05-2011 02:30 PM

I think you need to elaborate. If you want to fix this properly, and generate PDF files the press people want, you have to fix the problem at the source. Maybe just make a new post about color profiles and Apache FOP? I doubt the experts read this thread.

Also the press people usually want color profiles. But I can understand they reject for example Fogra when the color space is RGB. If you don't know about color profiles, you should use sRGB.

Code:

<output-profile>/path/to/sRGB.icm</output-profile>


All times are GMT -5. The time now is 06:36 PM.