LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-26-2011, 06:19 AM   #1
KamasCZ
LQ Newbie
 
Registered: Jan 2011
Location: Czech Republic, Tyniste n. O.
Distribution: Slackware
Posts: 21

Rep: Reputation: 1
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.
 
Old 03-26-2011, 07:29 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
 
Old 04-04-2011, 11:50 PM   #3
KamasCZ
LQ Newbie
 
Registered: Jan 2011
Location: Czech Republic, Tyniste n. O.
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by corp769 View Post
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.
 
Old 04-05-2011, 06:39 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hmmm.... Something like this maybe? http://janerob.com/rob/piccel/
 
Old 04-05-2011, 09:14 AM   #5
KamasCZ
LQ Newbie
 
Registered: Jan 2011
Location: Czech Republic, Tyniste n. O.
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by corp769 View Post
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.
 
Old 04-05-2011, 09:25 AM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,135

Rep: Reputation: 230Reputation: 230Reputation: 230
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
 
Old 04-05-2011, 11:49 AM   #7
KamasCZ
LQ Newbie
 
Registered: Jan 2011
Location: Czech Republic, Tyniste n. O.
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Guttorm View Post
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.
 
Old 04-05-2011, 02:30 PM   #8
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,135

Rep: Reputation: 230Reputation: 230Reputation: 230
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>
 
  


Reply

Tags
ghostscript, pdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autoloading ICC profile Navyblue Linux - Software 0 12-06-2006 09:30 AM
Setting the ICC Profile in a tiff file James_dean Programming 0 11-27-2005 02:11 AM
kernel 2.6.3 with icc beta Linux From Scratch 0 02-28-2004 02:32 PM
c++/intel icc j-ray Linux - Software 1 05-11-2002 11:28 AM
compiling kernel with icc Hano Linux - General 0 04-24-2002 01:51 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration