Hi All, I'm new to FOP, having a project that uses FOP. I have two problems, I think both related to the background image, not sure though. I have a big form, the data comes from the database, and I need to fill it in to the appropriate positions on the background image. I create it this way:
<?xml version="1.0" encoding="UTF-8" ?> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master page-height="279.4mm" page-width="215.9mm" margin-top="0mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" master-name="PageMaster"> <fo:region-body border-style="none" border-width="thin" margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="0mm" /> </fo:simple-page-master> </fo:layout-master-set> - <fo:page-sequence initial-page-number="1" master-reference="PageMaster"> - <fo:flow flow-name="xsl-region-body"> - <fo:block> <fo:external-graphic src="url(Images/MASTER.gif)" content-height="scale-to-fit" scaling="uniform" height="100%" width="100%" /> </fo:block> .................. etc This way it works fine, but as soon as I make margin-top=10mm: <fo:simple-page-master page-height="279.4mm" page-width="215.9mm" margin-top="0mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" master-name="PageMaster"> <fo:region-body border-style="none" border-width="thin" margin-top="10mm" margin-left="0mm" margin-right="0mm" margin-bottom="0mm" /> FOP creates automatically an extra page, and all data go to the second page, background image remains empty on the first page. What am I doing wrong? (I noticed that up until 7mm it works just fine, but if I change margin to 8mm or bigger - I get this issue). This is problem #1. Second problem is: if I make margin-top="10mm", in addition to what I said before, somehow I'm missing part of the background image, bottom part of it, it just gets cut off. From what I understand, it shouldn't happen, as I mentioned: content-height="scale-to-fit" scaling="uniform" height="100%" width="100%" for the image... What is wrong here? I'm kind of stuck, tried different things: scaling="non-uniform", height="auto", I even tried giving the concrete height and width in mm - nothing works. Also, googling didn't help much. I would appreciate your help, All ! Thanks, George -- View this message in context: http://old.nabble.com/Background-image-tp32788696p32788696.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
