You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Eric SCHAEFFER <es...@free.fr> on 2001/05/15 09:31:37 UTC

Re: Image and Text on the same line

Quoting Hoang Nam <nn...@yahoo.fr>:

> Hello all,
> 
> When I insert an image (using external-graphique) in a block, there is
> usually line-break in front of  the image.
> 
>             <fo:block space-after="15pt" space-before ="15pt">
>                             text.<fo:external-graphic
> src="file:C:\Madame.bmp"> ... text ....
>             </fo:block>
> 
> Could somebody show me how to keep the texts and the image on the same
> line
> ?

external-graphic is implemented as a block element, witch is a mistake...
For now, you need to use tables.

Eric.

> 
> Thanks alot !
> 
> Nam Nguyen
> Business Document
> France
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Image and Text on the same line

Posted by Hoang Nam <nn...@yahoo.fr>.

----- Original Message -----
From: "Eric SCHAEFFER" <es...@free.fr>
To: <fo...@xml.apache.org>
Sent: Tuesday, May 15, 2001 9:31 AM
Subject: Re: Image and Text on the same line


> Quoting Hoang Nam <nn...@yahoo.fr>:
>
> > Hello all,
> >
> > When I insert an image (using external-graphique) in a block, there is
> > usually line-break in front of  the image.
> >
> >             <fo:block space-after="15pt" space-before ="15pt">
> >                             text.<fo:external-graphic
> > src="file:C:\Madame.bmp"> ... text ....
> >             </fo:block>
> >
> > Could somebody show me how to keep the texts and the image on the same
> > line
> > ?
>
> external-graphic is implemented as a block element, witch is a mistake...
> For now, you need to use tables.
>


Thanks for your help ! Do you mean I have to create   in one table cell and
the image in another ? Like this :

          <fo:table>
          <fo:table-column column-width="5cm"/>
          <fo:table-column column-width="5cm"/>
          <fo:table-column column-width="5cm"/>

.................................................................
                     <fo:table-cell >
                            <fo:block> Société : Business Document
</fo:block>
                      </fo:table-cell>
                      <fo:table-cell >
                            <fo:external-graphic
src="file:G:\PROGRAM\EDINAT\BMP\Madame.bmp"/>
                       </fo:table-cell>
                     <fo:table-cell >
                            <fo:block> text ..text ...text</fo:block>
                      </fo:table-cell>
                        ......................
            </fo:table>

 So, I have to know advance the width of the columns, don't I, right ?

Thanks !

Nam




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org