We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to extract and update hyperlinks in Office documents

I am new to Aspose so I’m not sure if this has been discussed and I just haven’t found it yet but I was wanting to know if Aspose supports extracting and updating hyperlinks in Microsoft Office documents. I know support is offered for PDF documents through the Annotation objects but I haven’t found anything for Office docs.

If this is supported can you provide an example for how this is implemented.

Thanks,
Jeremy Schroeder

Hi Jeremy,

Thanks for your inquiry. A Hyperlink in Ms Word document is represented by a Field element. A
field in a Word document is a complex structure consisting of multiple
nodes that include field start, field code, field separator, field
result and field end. Fields can be nested, contain rich content and
span multiple paragraphs or sections in a document. The Field class is a
“facade” object that provides properties and methods that allow to work
with a field as a single object.

Please use the code shared in following documentation link to extract and modify the Hyperlink.
http://www.aspose.com/docs/display/wordsnet/How+to++Replace+or+Modify+Hyperlinks

Hope this helps you. Please let us know if you have any more queries.