I will definitely take this under serious consideration. We use two
different profiles programmatically so this advice may be very timely,
thank you. I need to rework a "pipeline" just to get away from
fake-RGB-later-stringreplaced-in-pdf plan.
Here I go conflating two issues again but...Did fop-1.1rc1 change the
way it writes colours (cmyk) into the pdf?
rjs
On 08/28/2012 09:20 AM, Chris Bowditch wrote:
On 27/08/2012 17:07, Rob Sargent wrote:
Hi Rob,
Bingo. I was completely off-base in thinking it was an xslt function.
Your suggestion works like a charm. This helps clean up local
colour-guessing a lot.
BTW, I strongly recommend using rgb-icc function instead of cmyk. The
rgb-icc function achieves the same thing as cmyk, but has 2 key
benefits over cmyk:
1. It is more flexible as it supports any named ICC Profile, not just
uncalibrated CMYK
2. rgb-icc is part of the XSL-FO recommendation and therefore portable
to other XSL-FO Formatters. cmyk function is custom to FOP.
Thanks,
Chris
THANKS,
rjs
On 08/27/2012 09:39 AM, Sergiu Dumitriu wrote:
On 08/27/2012 11:09 AM, Rob Sargent wrote:
Does anyone have at hand (a link to) an example of using the cmyk()
function. All I get is "Could not find function: cmyk". Who supplies
this function?
Running from cli ~/tools/fop/fop-1.1rc1/fop -xml doc-1.xml -xsl
/d3/support/config/stylesheet/prose.xsl -foout cmyk.fo
with this (attempted) call in my stylesheet:
<xsl:param name="darkbackgroundcolor">
<xsl:value-of select="cmyk(0.0, 0.564, 0.529, 0.325)"/>
</xsl:param>
Definitely not XSLT. The way you wrote this, it's not FOP that fails
to find the function, but the XSLT engine that transforms XML into
FO. Try something like:
<xsl:param name="darkbackgroundcolor">
<xsl:text>cmyk(0.0, 0.564, 0.529, 0.325)</xsl:text>
</xsl:param>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org