Thanks for your anser.
Is it not possible to do this in my xhtml page ?
I give you 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>
Le 20 juin 2008 15:22, 1T3XT info <[EMAIL PROTECTED]> a écrit :
> Nicolas ... wrote:
> > Bonjour,
> >
> > J'ai effectué une page xhtml pour générer un document PDF en me basant
> > sur cette page :
> > http://docs.jboss.com/seam/1.2.0.PATCH1/reference/en/html/itext.html
> >
> > J'ai créé un page sur mon document représentant le sommaire dans
> > laquelle j'ai insérer les ttitre de tous mes chapiotre avec une ancre
> > sur chacun d'eux.
> > J'aimerai y rajouter le numéro de la page à laquelle je peux les
> > trouver, est-ce possible?
>
> Merci pour le update an anglais.
> Thanks for the update in English.
>
> Have a look at:
> http://www.1t3xt.info/examples/browse/?page=example&id=214
>
> More specifically at the end of the code where it says:
> PdfReader reader = new PdfReader("results/in_action/chapter13/remote.pdf");
> HashMap map = SimpleNamedDestination.getNamedDestination(reader, false);
> SimpleNamedDestination.exportToXML(map, new FileOutputStream(
> "results/in_action/chapter13/remote.xml"), "ISO8859-1", true);
>
> Does that give you the page numbers and coordinates of your anchors?
> --
> This answer is provided by 1T3XT BVBA
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar