Re: [xep-support] RenderX, Batik, SVG

From: Alexander Peshkov (
Date: Tue May 25 2004 - 02:22:42 PDT

  • Next message: Henrik Ryom: "[xep-support] retrieve-marker question?"

    Hello Brice,

    Surely RenderX XEP is not supposed to be used as 'backend' for Batik.
    But you can (and should :-) use XEP to achieve your goal. Simple
    XSL-FO document below demonstrates how you can wrap SVG image into XSL-FO:

    <?xml version="1.0"?>
    <fo:root xmlns:fo="">
                    <fo:simple-page-master master-name="main">
            <fo:page-sequence master-reference="main">
                    <fo:flow flow-name="xsl-region-body">
                          <fo:external-graphic src="url('your_image.svg')"/>

    (you can use fo:instream-foreign-object element instead of
    fo:external-graphic if you want to embed SVG content inside of XSL-FO.)

    One possible approach to your task is to write dedicated XSLT
    stylesheet that takes as an input SVG exported by Illustrator and
    required data, "marry" them and produce XSL-FO that then rendered into
    PDF by XEP. XEP can also use PDFs as vector images so you can save your
    Illustrator documents as PDF if you wish.
    Vector graphical formats supported by XEP described in its
    documentation (

    Hope this helps.

    Best regards,
    Alexander Peshkov

    RB> Greetings.

    RB> I'm currently in the process of putting together a backend that will
    RB> take Illustrator CS created template documents, exported to SVG, then
    RB> married with data, to be output as a print-ready PDF. By print-ready, I
    RB> mean that this will go to a print shop, not so much a common printer
    RB> device. So, things like CMYK & Pantone spot colors are important to
    RB> preserve.

    RB> I've landed at RenderX, because I'm using Batik, which uses Apache's FOP
    RB> backend to generate PDFs from SVG. However, Apache's FOP doesn't handle
    RB> colors as well as RenderX supposedly does, so I'm here.

    RB> Now - my question to the list is quite simple: can I use RenderX as a
    RB> backend to Batik? If not, or if the process would be excessively
    RB> complex, can (should?) I use RenderX directly to generate a PDF from
    RB> SVG? If so, I'm guessing I'll need to wrap a bit of XML/XSL-FO around my
    RB> SVG. Without getting too deep into XSL-FO, what would be the
    RB> base-minimum amount of markup I would need to be able to start testing
    RB> the RenderX trial version?

    RB> What type of documentation is out there for using the more advanced
    RB> color extensions for RenderX? Does RenderX only support CMYK, or is
    RB> there a way of generating a PDF with spot-color information?! If this
    RB> latter point is not possible, what options am I left with to generate a
    RB> press-ready PDF?

    RB> TIA!
    RB> Brice Ruth
    RB> -------------------
    RB> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    RB> in the body of the message to from the address
    RB> you are subscribed from.
    RB> (*) By using the Service, you expressly agree to these Terms of Service

    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service

    This archive was generated by hypermail 2.1.5 : Tue May 25 2004 - 02:35:02 PDT