You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Olivier Mansour <om...@clever-age.com> on 2006/03/14 16:38:15 UTC
FOP, CMYK and PDF
Hey
We are evaluating fop solution to produce PDF with CMYK color-space use.
I have found a solution to convert RGB definition for text-element
(see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I have
this error message :
"Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC
Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile
Data""
Is there any solution to have a PDF output with CMYK ?
Thanks a lot.
Olivier
--
Olivier Mansour http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP, CMYK and PDF
Posted by Olivier Mansour <om...@clever-age.com>.
Actually it's a mistake
A good JPEG with with CMYK color profil is OK without error and warning.
So, using FOP and 0.91 and pdfbox I can produce goof CMYK PDF.
Thanks to all
Olivier
Le 15 mars 06 à 09:29, Jeremias Maerki a écrit :
> It would be good if you could post the offending JPEG file, so we can
> fix the problem. If it works in 0.20.5 but doesn't in the latest
> release,
> we should fix it.
>
> On 14.03.2006 17:58:20 Olivier Mansour wrote:
> <snip/>
>> to summarize the workaround :
>> - with FOP 0.91 version and a CMYK JPEG in FO file, the FO file won't
>> compile and output this error : " Invalid ICC profile:
>> java.lang.IllegalArgumentException: Invalid ICC Profile Data
>> java.lang.IllegalArgumentException: Invalid ICC Profile Data"
>> - with FOP 0.20.5 the FO file compile and I can use succefully
>> http://
>> www.pdfbox.org/commandlineutilities/ConvertColorspace.html to produce
>> a final CMYK PDF like Pierre Yves said
> <snip/>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
--
Olivier Mansour http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP, CMYK and PDF
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
It would be good if you could post the offending JPEG file, so we can
fix the problem. If it works in 0.20.5 but doesn't in the latest release,
we should fix it.
On 14.03.2006 17:58:20 Olivier Mansour wrote:
<snip/>
> to summarize the workaround :
> - with FOP 0.91 version and a CMYK JPEG in FO file, the FO file won't
> compile and output this error : " Invalid ICC profile:
> java.lang.IllegalArgumentException: Invalid ICC Profile Data
> java.lang.IllegalArgumentException: Invalid ICC Profile Data"
> - with FOP 0.20.5 the FO file compile and I can use succefully http://
> www.pdfbox.org/commandlineutilities/ConvertColorspace.html to produce
> a final CMYK PDF like Pierre Yves said
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP, CMYK and PDF
Posted by Olivier Mansour <om...@clever-age.com>.
Le 14 mars 06 à 17:29, Pierre-Yves Landuré a écrit :
> Hi,
>
> you should search for pstill : this tool can convert RGB PDF to
> CMYK ones, but it is not free.
>
> For CMYK PDF with images, you must use CMYK images as input, so
> that FOP output the PDF already partially in CMYK. You can not
> actually produce CMYK pdf without using CMYK jpgs as input. I think
> that you should take a look at image magick for converting your
> images. This tool do pretty good RGB to CMYK conversion.
>
> Hope this help
yes thank you !
to summarize the workaround :
- with FOP 0.91 version and a CMYK JPEG in FO file, the FO file won't
compile and output this error : " Invalid ICC profile:
java.lang.IllegalArgumentException: Invalid ICC Profile Data
java.lang.IllegalArgumentException: Invalid ICC Profile Data"
- with FOP 0.20.5 the FO file compile and I can use succefully http://
www.pdfbox.org/commandlineutilities/ConvertColorspace.html to produce
a final CMYK PDF like Pierre Yves said
Maybe switching the compilation error to a simple warning will be
usefull
thank you
Olivier
>
> Pierre-Yves
>
> Olivier Mansour a écrit :
>>
>> Le 14 mars 06 à 16:53, Pierre-Yves Landuré a écrit :
>>
>>> Hi olivier,
>>>
>>> at first, you have nothing to do special to use CMYK jpg with
>>> FOP 0.20.5. It should work the same as RGB jpg.
>>>
>>> But you should know that FOP 0.20.5 as a bug with rgb color : if
>>> a component is less that 12, it set it to 0. So that :
>>>
>>> rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of
>>> this if you want perfect colors.
>>>
>>> On my own, i've written a little java code that can replace RGB
>>> colors by CMYK ones inside a PDF. You should find it at PDFBox
>>> website. (PDFBox is a java library to manipulate PDF).
>>>
>>> I'm currently using FOP 0.20.5 to produce CMYK PDF.
>>
>> Thanks for your answer. I have already tested your code and it
>> works fine for texts elements. But do you import CMYK pictures on
>> your PDF ? If you don't, how produce CMYK PDF with RVB pictures ?
>> That's my last problem. We use FOP 0.91 maybe its a clue.
>>
>> Someone was talking about free third part tools to convert RVB PDF
>> to CMYK PDF but I can't find one. An idea ?
>>
>> Thank you
>> Olivier
>>
>>
>>>
>>> Pierre-Yves
>>>
>>> Olivier Mansour a écrit :
>>>> Hey
>>>>
>>>> We are evaluating fop solution to produce PDF with CMYK color-
>>>> space use.
>>>> I have found a solution to convert RGB definition for text-
>>>> element (see : http://tinyurl.com/ewpxh) but when I import a
>>>> CMJN jpg I have this error message :
>>>> "Invalid ICC profile: java.lang.IllegalArgumentException:
>>>> Invalid ICC Profile Data java.lang.IllegalArgumentException:
>>>> Invalid ICC Profile Data""
>>>>
>>>> Is there any solution to have a PDF output with CMYK ?
>>>>
>>>> Thanks a lot.
>>>> Olivier
>>>>
>>>>
>>>> --
>>>> Olivier Mansour http://www.clever-age.com
>>>> Clever Age - conseil en architecture technique
>>>> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>>>>
>>>> Clever Age vous invite à ses petits déjeuners du Jeudi
>>>> http://www.clever-age.com/actualites/petits-dejeuners/
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: fop-users-
>>>> unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-
>>>> help@xmlgraphics.apache.org
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>> --
>> Olivier Mansour http://www.clever-age.com
>> Clever Age - conseil en architecture technique
>> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>>
>> Clever Age vous invite à ses petits déjeuners du Jeudi
>> http://www.clever-age.com/actualites/petits-dejeuners/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-
>> help@xmlgraphics.apache.org
>>
>>
>>
>
--
Olivier Mansour http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP, CMYK and PDF
Posted by Pierre-Yves Landuré <py...@dorigo.fr>.
Hi,
you should search for pstill : this tool can convert RGB PDF to CMYK
ones, but it is not free.
For CMYK PDF with images, you must use CMYK images as input, so that FOP
output the PDF already partially in CMYK. You can not actually produce
CMYK pdf without using CMYK jpgs as input. I think that you should take
a look at image magick for converting your images. This tool do pretty
good RGB to CMYK conversion.
Hope this help
Pierre-Yves
Olivier Mansour a écrit :
>
> Le 14 mars 06 à 16:53, Pierre-Yves Landuré a écrit :
>
>> Hi olivier,
>>
>> at first, you have nothing to do special to use CMYK jpg with FOP
>> 0.20.5. It should work the same as RGB jpg.
>>
>> But you should know that FOP 0.20.5 as a bug with rgb color : if a
>> component is less that 12, it set it to 0. So that :
>>
>> rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of this
>> if you want perfect colors.
>>
>> On my own, i've written a little java code that can replace RGB
>> colors by CMYK ones inside a PDF. You should find it at PDFBox
>> website. (PDFBox is a java library to manipulate PDF).
>>
>> I'm currently using FOP 0.20.5 to produce CMYK PDF.
>
>
> Thanks for your answer. I have already tested your code and it works
> fine for texts elements. But do you import CMYK pictures on your PDF
> ? If you don't, how produce CMYK PDF with RVB pictures ? That's my
> last problem. We use FOP 0.91 maybe its a clue.
>
> Someone was talking about free third part tools to convert RVB PDF to
> CMYK PDF but I can't find one. An idea ?
>
> Thank you
> Olivier
>
>
>>
>> Pierre-Yves
>>
>> Olivier Mansour a écrit :
>>
>>> Hey
>>>
>>> We are evaluating fop solution to produce PDF with CMYK color- space
>>> use.
>>> I have found a solution to convert RGB definition for text- element
>>> (see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I
>>> have this error message :
>>> "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid
>>> ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC
>>> Profile Data""
>>>
>>> Is there any solution to have a PDF output with CMYK ?
>>>
>>> Thanks a lot.
>>> Olivier
>>>
>>>
>>> --
>>> Olivier Mansour http://www.clever-age.com
>>> Clever Age - conseil en architecture technique
>>> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>>>
>>> Clever Age vous invite à ses petits déjeuners du Jeudi
>>> http://www.clever-age.com/actualites/petits-dejeuners/
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users- help@xmlgraphics.apache.org
>>>
>>>
>>>
>>
>
>
>
> --
> Olivier Mansour http://www.clever-age.com
> Clever Age - conseil en architecture technique
> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>
> Clever Age vous invite à ses petits déjeuners du Jeudi
> http://www.clever-age.com/actualites/petits-dejeuners/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
Re: FOP, CMYK and PDF
Posted by Olivier Mansour <om...@clever-age.com>.
Le 14 mars 06 à 16:53, Pierre-Yves Landuré a écrit :
> Hi olivier,
>
> at first, you have nothing to do special to use CMYK jpg with FOP
> 0.20.5. It should work the same as RGB jpg.
>
> But you should know that FOP 0.20.5 as a bug with rgb color : if a
> component is less that 12, it set it to 0. So that :
>
> rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of this
> if you want perfect colors.
>
> On my own, i've written a little java code that can replace RGB
> colors by CMYK ones inside a PDF. You should find it at PDFBox
> website. (PDFBox is a java library to manipulate PDF).
>
> I'm currently using FOP 0.20.5 to produce CMYK PDF.
Thanks for your answer. I have already tested your code and it works
fine for texts elements. But do you import CMYK pictures on your
PDF ? If you don't, how produce CMYK PDF with RVB pictures ? That's
my last problem. We use FOP 0.91 maybe its a clue.
Someone was talking about free third part tools to convert RVB PDF to
CMYK PDF but I can't find one. An idea ?
Thank you
Olivier
>
> Pierre-Yves
>
> Olivier Mansour a écrit :
>> Hey
>>
>> We are evaluating fop solution to produce PDF with CMYK color-
>> space use.
>> I have found a solution to convert RGB definition for text-
>> element (see : http://tinyurl.com/ewpxh) but when I import a CMJN
>> jpg I have this error message :
>> "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid
>> ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC
>> Profile Data""
>>
>> Is there any solution to have a PDF output with CMYK ?
>>
>> Thanks a lot.
>> Olivier
>>
>>
>> --
>> Olivier Mansour http://www.clever-age.com
>> Clever Age - conseil en architecture technique
>> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>>
>> Clever Age vous invite à ses petits déjeuners du Jeudi
>> http://www.clever-age.com/actualites/petits-dejeuners/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-
>> help@xmlgraphics.apache.org
>>
>>
>>
>
--
Olivier Mansour http://www.clever-age.com
Clever Age - conseil en architecture technique
GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
Clever Age vous invite à ses petits déjeuners du Jeudi
http://www.clever-age.com/actualites/petits-dejeuners/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP, CMYK and PDF
Posted by Pierre-Yves Landuré <py...@dorigo.fr>.
Hi olivier,
at first, you have nothing to do special to use CMYK jpg with FOP
0.20.5. It should work the same as RGB jpg.
But you should know that FOP 0.20.5 as a bug with rgb color : if a
component is less that 12, it set it to 0. So that :
rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of this if
you want perfect colors.
On my own, i've written a little java code that can replace RGB colors
by CMYK ones inside a PDF. You should find it at PDFBox website. (PDFBox
is a java library to manipulate PDF).
I'm currently using FOP 0.20.5 to produce CMYK PDF.
Pierre-Yves
Olivier Mansour a écrit :
> Hey
>
> We are evaluating fop solution to produce PDF with CMYK color-space use.
> I have found a solution to convert RGB definition for text-element
> (see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I have
> this error message :
> "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC
> Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile
> Data""
>
> Is there any solution to have a PDF output with CMYK ?
>
> Thanks a lot.
> Olivier
>
>
> --
> Olivier Mansour http://www.clever-age.com
> Clever Age - conseil en architecture technique
> GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10
>
> Clever Age vous invite à ses petits déjeuners du Jeudi
> http://www.clever-age.com/actualites/petits-dejeuners/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>