On Sat, 8 Nov 2003 23:57:53 +0500 (GMT) Ashish Kumar <[EMAIL PROTECTED]> wrote:
> hi all, > i want to simply embed an image in my pdf document. > > i m using following codes: > > <xsl:template match="hello"> > <fo:block> > hello there! > <fo:external-graphic src="hello.jpg"/> > </fo:block> > </xsl:template> > > while the pdf displays "hello there!", it doesn't displays the image. > (i have checked 100 times that image is in the current directory with > correct name!) Hi, i think you have to take an absolute path to your image or often used an reader pipeline,where you can access your image via http://localhost:8888/pics/myimage.jpg and use this url for your <fo:external-graphic> sitemap.xmap snipped for reader pipeline <map:match pattern="pics/**.jpg"> <map:read mime-type="image/jpg" src="pics/{1}.jpg"/> </map:match> the last solution will not work for offline-generation via CLI, there you must use absolute path. Or you encode your images with base64 in the xml-file an then use the <fo:instream-foreign-object>,where you can use embedding svg-images example ------- <svg width="" heigth=""> <g> <image width="" height="" xlink:href="data:image/png;base64,<!-- encoded image here -->"/> </g> </svg> </fo:instream-foreign-object> Look in the mailing-lists archives, there are many solutions there too. Regards (and sorry for my english), Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]