xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ingo peter <ingo.pe...@ip-software.de>
Subject Re: wrong offset on block-container
Date Fri, 15 Apr 2011 09:19:42 GMT
thanks,

little attribute big effects....


Am 15.04.2011 09:31, schrieb Pascal Sancho:
> Hi,
>
> in short, there is leading space between 2 lines, half leading before
> and half leading after.
>
> This leading is based on both font-size and line-height.
>
> You have to ensure that both properties are set to 0 to have a null leading.
>
> Since line-height defaults to 1.2 (IOW: 1.2*font-size), you just need to
> explicitely set font-size="0" on the fo-block containing the image.
>
> Le 14/04/2011 18:40, ingo peter a écrit :
>> hi,
>>
>> i want do emped a lot of jpg-files into a dokument. my position starts
>> at x=0mm and y=0mm
>> after generating the pdf-file for all images is a offset of y=+1.2mm.
>> if i change the reference-orientation from 0 to 180 (mad) the positon is
>> korrekt.
>>
>> my fop-file
>> ...
>> fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
>> xmlns:svg="http://www.w3.org/2000/svg" font-family="Times Roman"
>> font-size="12pt" text-align="center">
>>      <fo:layout-master-set>
>>              <fo:simple-page-master master-name="left"
>>                      margin-top="0mm"
>>                          margin-bottom="0mm"
>>                          margin-left="0mm"
>>                          margin-right="0mm"
>>                          page-width="396mm"
>>                          page-height="297mm">
>>           <fo:region-body margin-top="0mm" margin-bottom="0mm"/>
>>                  <fo:region-before extent="0mm"/>
>>                  <fo:region-after extent="0mm"/>
>>                  </fo:simple-page-master>
>>      </fo:layout-master-set>
>>
>> <fo:page-sequence id="bierdeckel-eckig" master-reference="left">
>> <fo:flow flow-name="xsl-region-body">
>>      <fo:block-container*top="0mm" left="0mm"* width="99mm" height="99mm"
>> reference-orientation="0" position="absolute">
>>          <fo:block>
>>              <fo:external-graphic width="99mm" height="99mm"
>> overflow="hidden" text-align="center" display-align="center"
>> src="test.jpg"/>
>>          </fo:block>
>>          </fo:block-container>
>>      <fo:block-container*top="99mm" left="0mm"* width="99mm"
>> height="99mm" reference-orientation="0" position="absolute">
>>          <fo:block>
>>              <fo:external-graphic width="99mm" height="99mm"
>> overflow="hidden" text-align="center" display-align="center"
>> src="test.jpg"/>
>>          </fo:block>
>>          </fo:block-container>
>> ...
>> my fop version is 1.0
>>
>> whats wrong?
>> any suggestions?
>>
>> mfg/regards
>> -ip-
>>

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


Mime
View raw message