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

Reply via email to