And its working. Thank you very much! Greetings, Rainer
2011/3/7 J.Pietschmann <[email protected]> > On 07.03.2011 01:53, Hahnekamp, Rainer wrote: > >> Hello everybody, >> >> I have the following simple xml markup that should put an image to the end >> of the page. The image is public so can simply copy& paste the code. >> >> For some reason fop generates a PDF file with two pages instead of one. >> Are >> there any hidden default spaces I should be aware of? >> > > It looks like you got the usual "half-leading" issue: the image is > embedded in a line, which gets some space added to the line height > (default 20% of the font size). > You could add font-size="0" to the block to avoid this issue, although > rounding problems may still cause FOP to produce a line break (reducing > the margin-top to 186.99mm should be safe). > > Search the spec at http://www.w3.org/TR/xsl/ for more "half-leading" > to get more info. > > >> --- >> <?xml version="1.0" encoding="UTF-8"?> >> <root xmlns="http://www.w3.org/1999/XSL/Format"> >> <layout-master-set> >> <simple-page-master master-name="frame" page-height="297mm" >> page-width="210mm" margin-top="15mm" margin-bottom="15mm" >> margin-left="15mm" >> margin-right="15mm"> >> <region-body /> >> </simple-page-master> >> </layout-master-set> >> <page-sequence master-reference="frame"> >> <flow flow-name="xsl-region-body"> >> <block margin-top="187mm"> >> <external-graphic src=" >> >> http://kiga.s3.amazonaws.com/4251-4500/4344/krokuszaehlspieleinfach44d693c7cf29b74d693c7d3e20e.svg >> " >> content-width="80mm" >> content-height="80mm" /> >> </block> >> </flow> >> </page-sequence> >> </root> >> --- >> > > > J.Pietschmann > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
