You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Nicolas ..." <mo...@gmail.com> on 2008/06/23 15:52:20 UTC

Make a summary in a PDF generated with iText

Hello all.

I had make a PDF generation using itext in a xtml view using this as it is
explain on this site :
http://docs.jboss.com/seam/1.2.0.PATCH1/reference/en/html/itext.html

I want to make a summary so, for the mooment I have all chapters on a page
with <p:anchor> tag and it works good. I give you a part of my code :

> <ui:repeat value="#{elementDocumentService.elements}" var="_elem">
>     <s:span rendered="#{_elem.niveau==0}">
> 	<p:font size="12">
> 	    <p:paragraph>
> 		<p:anchor reference="##{_elem.id}">
> 		     <p:text value="#{_elem.chapitre} #{_elem.titre}" />
> 		</p:anchor>
> 	     </p:paragraph>
> 	</p:font>
>     </s:span>
> </ui:repeat>
>
> <p:newPage/>
> <ui:repeat value="#{elementDocumentService.elements}" var="_elem">
>      <s:span rendered="#{_elem.niveau==0}">
> 	 <p:font size="16" style="bold,underline">
> 	     <p:paragraph spacingAfter="20">
> 		 <p:anchor name="#{_elem.id}">
> 	              <p:text value="#{_elem.chapitre} #{_elem.titre}" />
> 		 </p:anchor>
> 	      </p:paragraph>
> 	 </p:font>
>      </s:span>
> </ui:repeat>
>
>
I just want add on that the page number of my chapters to complete ma
summary.

Is it possible and how?

Thanks in advnace for your answer(s)