Hi,
Can some one help me with applying cross references while generating html
file.
In the previous versions of iText (1.4.7 and 2.0.1), the feature was
supported with the help of Anchor Class. I had achieved this useing the
following code snippet
Anchor anchor1 = new Anchor("<H5>" +
DPROperationalHandbookLiterals.SPACE_TOKEN
+ DPROperationalHandbookLiterals.EDIT
+ DPROperationalHandbookLiterals.SPACE_TOKEN +
displayName, headingStyle);
anchor1.setName(name);
paragraph = new Paragraph(anchor1);
document.add(paragraph);
//To add reference
Anchor anchor2 = new Anchor(name, descriptionStyle);
anchor2.setReference("#" + domainTag
.replace(DPROperationalHandbookLiterals.UNDERSCORE_TOKEN,
this.domainCount
+
DPROperationalHandbookLiterals.UNDERSCORE_TOKEN)
+ name);
paragraph = new Paragraph(anchor2);
document.add(paragraph);
This code doesn't give any error with the new version i.e iText - 2., but
it doesnt work. The link are not generated.
I Want to use the new version as it provides some extra features for rtf
generation and in my case i am generating both rtf and html.
Also if someone can help me in achieving the feature of cross references
in the rtf document.
Thank for previous helps.
With regards
Pradeep Pandey
______________________________________________________________________-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/