Hi, You wrote >> However I just can't get the image into the top-left corner of the block-container. FOP always puts some space between the image and the top border. == As the image is contained in a block, FOP creates a corresponding BlockArea and then adds a LineArea to the BlockArea. The organization of BlockArea is such that it adds a DisplaySpace before and after each LineArea which is causing it to slightly move down
SOLUTION: add the external-graphic directly into the block-container That is: <block-container absolute-position="absolute" left="0mm" top="0mm" width="12mm" height="12mm" border-style="solid" border-color="black" border-width="1mm"> <external-graphic vertical-align="top" src="url(blackdot.png)" content-width="1mm" content-height="1mm" /> </block-container> I hope it helps. Babar Ismail Software Engineer Cambridge Docs [EMAIL PROTECTED] -----Original Message----- From: Matthias B. [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 5:49 PM To: [email protected] Subject: Excess space between top border and content I'm trying to absolutely position an image on a page. I use the following construction <block-container absolute-position="absolute" left="..." top="..." width="..." height="..."><block><external-graphic vertical-align="top" src="url(...)" content-width="..." content-height="..." /></block></block-container> However I just can't get the image into the top-left corner of the block-container. FOP always puts some space between the image and the top border. The attached files demonstrate the problem. Expected output would have the little black square touch the left-border as well as the top border. Actual output as can be seen in the PDF has the little square touch only the left border. Is this a bug in FOP or am I doing something wrong? I'm using FOP-0.91beta. Another strange thing (related?) is that FOP puts the left border of the block-container outside of the page area but puts the top-border inside the page area. I haven't checked the FO specs on whether the borders are supposed to be drawn outside or inside the coordinates left/top/width/height, but I would have expected left and top border to behave the same, so that for a block-container located at 0,0 I would either see left and top or neither border. MSB -- The most simple solutions are the most difficult to find. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
