Parses the links found in this DocumentText.
DocumentPageText.prototype.parseLinks = function(linkPatterns)
parseLinks(linkPatterns: any): DocumentLink;
A list of
RegExp objects to use for parsing the links.
A list of the links parsed.
If the value of DocumentText.AutoParseLinks is true, then the document will call ParseLinks for each page after the first time the text is obtained using GetText.
The value of linkPatterns. The result links (if any) will be merged with any existing links found in the page (for example, internal page links parsed through DocumentStructure or user defined-links and can be accessed through DocumentPage.GetLinks.
This method will run the regular expressions passed and adds any matches found as a value of type DocumentLink with DocumentLink.LinkType equals to DocumentLinkType.Value, DocumentLink.Value set to the matching text, and DocumentLink.Bounds set to the bounding rectangle of the match in page units.
If more than one match occurs for a regular expression, then this method will use the match that has the longest length. For example, if the text
contains the string
mailto:email@example.com, and the regular expression list found a match for the whole string (from a URL regular expression
matcher) and the email part only (from an email regular expression matcher), then the first match is used since it contains a longer value and the second
one is discarded.
Refer to AutoParseLinks for more information.
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.