Hi Cameron, I recently stumbled on this your post while seeking to implement a solution for rendering PDF documents from XSL-FO content (using Apache FOP+Batik), which includes/references SVGs that in turn include XHTML embedded in <foreignObject> tags.
Thanks - using relevant code from your foreignObject branch, integrated into the latest Batik 1.9 source code, I have been able to adapt and build an up-to-date Batik jar to handle the SVG+XHTML (supported by an up-to-date required core-renderer.jar as well). This works fine when I test converting such an SVG (the test.svg attached to your post, for example) to PNG. I see the forerignObject content rendered perfectly in the PNG - XHTML text and CSS styling (similar to your attached shot.png). However, when I try converting the SVG to a PDF, I don't see any of the XHTML text. The CSS effects - colour-background highlights and underlines etc, do appear the places where the bits of text they apply to should be, but none of the actual XHTML text. The normal <text> elements of the SVGs also do render okay. Please have you encountered this issue? Or is there some additional key step required in bridging with the PDF renderer in FOP, that I've missed out? Thinking it might be a font issue, I have checked the font settings declared in the FOP configuration file I'm using, to ensure the necessary true type fonts for the PDF renderer are included. Thanks, Ugo -- View this message in context: http://batik.2283329.n4.nabble.com/Re-Create-a-framework-for-foreignObject-and-integrate-an-XHTML-engine-tp2981895p4657035.html Sent from the Batik - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
