Loading ...
Sorry, an error occurred while loading the content.
 

Re: [XSL-FO] Embed raster image inside FO

Expand Messages
  • Oleg Tkachenko
    ... Actually you can, that s what fo:instream-foreign-object formatting object is intended for - to embed inline graphic (in xml form though), but I m not
    Message 1 of 4 , Oct 4, 2002
      dennis_joel_david wrote:

      > Can i embed a raster image directly inside my FO document,
      > in a BASE64 encoded string or something?
      Actually you can, that's what fo:instream-foreign-object formatting
      object is intended for - to embed inline graphic (in xml form though),
      but I'm not aware of any fo processor, which supports such kind of image
      embedding.

      --
      Oleg Tkachenko
      eXperanto team
      Multiconn International, Israel
    • Chris Bowditch
      ... You can pull in an image from a file using fo:external-graphic. _________________________________________________________________ Chat with friends online,
      Message 2 of 4 , Oct 7, 2002
        >
        >Hi.
        >Can i embed a raster image directly inside my FO document,
        >in a BASE64 encoded string or something?
        >

        You can pull in an image from a file using fo:external-graphic.


        _________________________________________________________________
        Chat with friends online, try MSN Messenger: http://messenger.msn.com
      • stephpatporter
        Yes.
        Message 3 of 4 , Apr 3, 2003
          Yes.

          <fo:instream-foreign-object xsl:use-attribute-
          sets="img">
          <svg:svg xmlns:svg="http://www.w3.org/2000/svg"
          width="300px" height="300px">
          <svg:image width="200" height="200" x="0" y="100"
          xlink:href="data:image/png;base64,iVBORw0..."/>
          </svg:svg>
          </fo:instream-foreign-object>

          Make sure you have enough height and width. And, make sure you have
          compatible jar files (ie. fop, batik from the same fop package).

          use this example for jpegs (change png to jpeg) too.


          --- In XSL-FO@yahoogroups.com, "Chris Bowditch" <bowditch_chris@h...>
          wrote:
          > >
          > >Hi.
          > >Can i embed a raster image directly inside my FO document,
          > >in a BASE64 encoded string or something?
          > >
          >
          > You can pull in an image from a file using fo:external-graphic.
          >
          >
          > _________________________________________________________________
          > Chat with friends online, try MSN Messenger:
          http://messenger.msn.com
        Your message has been successfully submitted and would be delivered to recipients shortly.