This project has moved and is read-only. For the latest updates, please go here.

Link and anchor

Only absolute or relative Uri are processed.
Javascript link are ignored.

Anchors are supported too but you can turn off the option to include them.
There is a predefined anchor inside Word that refers to the top of the document : <a href="#_top">.

First, enable this option (for the _top anchor, no need to enable it, the converter always accepts it)
converter.ExcludeLinkAnchor = true;

<div style="page-break-before: always"></div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Duis dictum leo quis ipsum tempor nec ultrices sapien elementum.
<div style="text-align: right">
   <a href="#_top">Back to summary</a>


Embed an image inside an anchor:

<a href="">HtmlToOpenXml</a>
<a  href="">
    <img alt="Wikipedia, the Free Encyclopedia" src="wikipedia.png" />
image link.png

Last edited Apr 18, 2014 at 1:14 PM by onizet, version 7