xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: fop and cmyk: pdf-image vs svg
Date Mon, 15 Sep 2008 08:16:00 GMT
On 12.09.2008 17:24:37 Maximilian Gaerber wrote:
> Hi,
> 
> I just wanted to post some results from my various approaches to get 
> vector based graphics into my fop workflow with cmyk colors:
> 
> While FOP can handle CMYK color values defined in XSL-FO documents quite 
> nicely, CMYK colors defined in SVG graphics will end up as RGB in the 
> output PDF (so far, Batik seems to mess this up). As well, none of the 
> tools (Adobe Illustrator, Inkscape) I tested, preserve the CMYK color 
> definitions when I save the SVG file. So I'd have to post-process the 
> files and correct this.
> 
> So far, the better alternative seems to be to not use SVG but PDF and 
> use the pdf-image extension, see 
> http://www.jeremias-maerki.ch/development/fop/index.html to place the 
> "PDF images". With PDF you've got tool support for CMYK and the graphics 
> remain vector graphics - no need to rasterize.
> 
> And it is as easy as:  <fo:external-graphic src="foo.pdf#page=1"/>
> 
> @Jeremias: from your source code (Ver. 1.2, PDFBoxAdapter.java, line 
> 223), it looks like you're reading out the MediaBox from the 
> to-be-placed PDF?

Yes, that's right.

<snip/>


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message