You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Dang Minh Phuong <mp...@ncs.com.sg> on 2002/10/16 08:37:10 UTC

Bullet and indent when generate pdf by fop

Hi all,

I am using fop to generate pdf document from xml. Now I have to format one
of my paragraph with bullet, it looks something like this

* my content is
  indented like
  this one

* The second
  paragraph

* ...

How can I do that???

Highly appreciate for your help

mpdang

Re: Bullet and indent when generate pdf by fop

Posted by clholm <vp...@earthlink.net>.
You can use something like:

<fo:list-block provisional-distance-between-starts="14pt"
space-before.optimum="14pt">
<fo:list-item>
<fo:list-item-label
end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>
Start of list item paragraph....more text more text more text
more text more text more text more text more text more text 
more text more text more text more text more text more
more text more text more text mort text....list item
paragraph end.
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label
end-indent="label-end()"><fo:block>&#x2022;</fo:block></fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
Start of list item paragraph....more text....list item paragraph end.
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>

Refer to "docs\examples\fo\extensive.fo".

Carl Holm





Dang Minh Phuong wrote:

> Hi all,
>
> I am using fop to generate pdf document from xml. Now I have to format one
> of my paragraph with bullet, it looks something like this
>
> * my content is
>   indented like
>   this one
>
> * The second
>   paragraph
>
> * ...
>
> How can I do that???
>
> Highly appreciate for your help
>
> mpdang