Different types of hyperlinks in a Word document

I am writing a small application that takes a path as input, and then extracts every docx file in that path, replacing each hyperlink with a keyword.

It is strange that I found two types of hyperlinks, the first of which is WordReccessingDocument ExternalRelationships, and the other is the search for each xml node matching <w:insrText/>, starting with HYPERLINK.

Are there any other ways to use a hyperlink in a docx file, or even better, is there a better way to find each hyperlink in a document through ooxml-api?

+3
source share
1 answer

These are two, and yes, there are two different ways to store the same thing in Word.

0

Source: https://habr.com/ru/post/1716672/


All Articles