You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Zahidul Islam <fa...@yahoo.com> on 2003/05/22 16:05:28 UTC

diplaying text/image in particular (x,y) coordinate in FO

At first thanks for getting reply of my early request. 
 
I am now facing problem as i have to display all the text or images at there specific position determined by the x,y coordinate. For example, let i have to show the following :
 
Name : Zahidul Islam                           My Image will Shown here
                                                          
Designation : Programmer                                 
 
here 'Name' will be at (x,y) = (200,100), 'Zahidul Islam' will be at (x,y) = (210,100), 'Designation' will be at (x,y) = (200,110), 'Programmer' will be at (x,y) = (215,110) and the image will be at (x,y) = (700,100).
 
So is it possible to place these data at specified position if the coordinates can be found from xml which is translated by xsl, xsl fo to generate the pdf.
 
waiting for reply.  


---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Re: diplaying text/image in particular (x,y) coordinate in FO

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Zahidul Islam wrote:
> I am now facing problem as i have to display all the text or images at there
> specific position determined by the x,y coordinate. For example, let i have
> to show the following :
> 
> Name : Zahidul Islam                           My Image will Shown here
> 
> Designation : Programmer
> 
> here 'Name' will be at (x,y) = (200,100), 'Zahidul Islam' will be at (x,y) =
> (210,100), 'Designation' will be at (x,y) = (200,110), 'Programmer' will be
> at (x,y) = (215,110) and the image will be at (x,y) = (700,100).

Try an absolutely positioned block container:
   <fo:block-container position="absolute" top="200mm" left="110mm"
    height="10mm" width="30mm">
     <fo:block>Designation: pragrammer</fo:block>
   <fo:block-container>
IIRC the coordinates are counted from the top left of the page, but
you'll surely find this out yourself. You must supply both height
and width to the container.

J.Pietschmann


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