smartinmedia / Net-Core-DocX-HTML-To-PDF-Converter

.NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
MIT License
322 stars 76 forks source link

Insert Hyperlinks for placeholders #12

Closed gofal closed 3 years ago

gofal commented 4 years ago

instead of replacing placeholders with pure text, this change makes it possible to replace a placeholder with a hyperlink.

Inserting real hyperlinks instead of text in PDFs avoids errors. If PDF viewers see text that start with "https://" they try to convert the text into a hyperlink and guess the url, which may fail often (specially if the url is so long that there is a line break). Having a real url makes this save.