Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Requirement- aprox 20 word documents which should be converted as a single document with document name as heading. In the output document if anyone clicks on index it should navigate to that specific document.
Posted

You mentioned that you're using the iTextSharp to merge the documents, but how did you manage to do that?
The iTextSharp is capable of merging only the PDF files, not Word files.

Is your requirement to merge multiple Word documents into a single PDF document?
Nevertheless the question still remains, how exactly are you merging those Word documents?
If you can provide that information then I'll show you how you can create bookmarks at the start of each merged document and how you can create a hyperlink that when clicked will jump to the required bookmark's place. You would also place a text content equal to the document's name in those bookmarks.

Also just as an FYI did you consider creating a TOC (Table of Content) element and placing a "Heading 1" paragraph with a document's name text at the beginning of each merged document?
I'm not sure if this would suite your needs because the other documents content could mess up the TOC's entries.
 
Share this answer
 
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.
 
Share this answer
 
Comments
Member 11422511 20-Dec-15 11:21am    
I already have written code for merging the doc using itext sharp but not getting the idea to index all the document in one page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900