SVG external graphic doesn't show in FopServlet?
Hi, I am having problems with external svg files in my fo file when generating PDFs using FopServlet. I am using fop-0.20.3 specifically, I have these refs to external graphics in my fo file. This works: fo:block fo:external-graphic src= file:C:\Progra~1\Allaire\JRun\servers\default\default-app\WEB-INF\classes\g eneratedjpg.jpg/ /fo:block This doesn't workgeneratedsvg.svg is in the same directory as generatedjpg.jpg. the resulting pdf has a blank space where the svg should be. fo:block fo:external-graphic src=file:C:\Progra~1\Allaire\JRun\servers\default\default-app\WEB-INF\class es\generatedsvg.svg/ /fo:block This doesn't workgeneratedsvg.svg is in the same directory as generatedjpg.jpg. the resulting pdf has a blank space where the svg should be. fo:block fo:external-graphic src=file:///c:/Progra~1/Allaire/JRun/servers/default/default-app/WEB-INF/cl asses/generatedsvg.svg/ /fo:block any help would be greatly appreciated. Will Carter
Re: SVG external graphic doesn't show in FopServlet?
Carter, Will wrote: I am having problems with external svg files in my fo file when generating PDFs using FopServlet. ... This doesn't workgeneratedsvg.svg is in the same directory as generatedjpg.jpg. the resulting pdf has a blank space where the svg should be. First: Can you view the SVG with an SVG viewer, like the one provided by Batik? Second: Try the FOP command line. Does the SVG show up now? Are you getting errors? Third: You may have run into scaling/clipping problems. If you replace the SVG content (all stuff inside the top level svg element) by a single blue rectangle, does this show up? Note that it is advisable to avoid secifying the height/with of the SVG in pixels, or without any units. Use for example millimeters instead. J.Pietschmann