AFAIK, color profile management is not supported by the current version of FOP.
Does your PNG contain transparent parts ?
We had about the same problem, with cockpit screenshots appearing "dull" while the original PNG obviously had brighter colors. It is an extremely complex topic, I spent weeks trying to find a solution to such problems and at the end, on a suggestion by Jeremias Maerki, we simply removed the transparent parts and that solved our problem (but maybe it does not solve yours). I believe there is only one color profile in the PDFs generated by FOP, and IIRC the corresponding FO tags as specified by the standard are ignored.

Le 23 juin 09 à 15:50, Georg Datterl a écrit :

Hi everybody,

I have a problem when inserting PNG files into a PDF using fop. My PNG file has a color profile "Dot Gain 15%". The PDF contains the same png file, but the color profile is suddenly "KODAK Grayscale Conversion - Gamma 1.0". And, as is clearly visible, the image in the PDF file ist brighter than the PNG. Can anybody on this list enlighten me on why the color profile is changing or how I can prevent it?

The PNG file and PDF file are attached, if you want to recreate the PDF, here's the fo code:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <fo:layout-master-set>
<fo:simple-page-master page-height="1cm" page-width="1cm" master- name="main">
                        <fo:region-body/>
                </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="main">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block>
<fo:external-graphic content-width="1cm" content-height="1cm" src="imgTest.png"/>
                        </fo:block>
                </fo:flow>
        </fo:page-sequence>
</fo:root>

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to