I am trying to generate a PDF document where the first letter is an image and the lines need to wrap around the image.
As a workaround for float, I am using list-item to wrap text around an image, the result I want is as below: ------ First Line . . . . . . . . | |Second Line. . . . . . . | img|Third Line . . . . . . . . | |Fourth Line . . . . . . . ------Fifth Line . . . . . . . .. Sixth Line . . . . . . . .. ... . . . Seventh Line . . . . . . . . .. .. If the "img" spans two lines it is showing up fine, but if the image spans more then two lines its messing it up, it shows it like below: ------ First Line . . . . . . . . | |Second Line. . . . . . . | img| | | ------ Third Line . . . . . . . . Fourth Line . . . . . . . Fifth Line . . . . . . . .. Sixth Line . . . . . . . .. ... . . . Seventh Line . . . . . . . . .. .. Can anybody give me a solution for this issue? I am including the code that I use to generate PDF, Any help is greatly appreciated. <fo:list-block start-indent="0in"> <fo:list-item> <fo:list-item-label baseline-shift="10%" end-indent="label-end()"> <fo:block> <fo:external-graphic content-width="100%" content-height="100%" dominant-baseline="text-after-edge" text-align="top" scaling="non-uniform" src="url(./{$imgName})" /> </fo:block> </fo:list-item-label> <fo:list-item-body start-indent=".39in"> <fo:block> <xsl:value-of select="substring(normalize-space(.),2)" /> </fo:block> </fo:list-item-body>