When using the following code with the new engine, the resulting hyperlink points to the PDF file itself, not to the URL I specify.
It works correctly if I set useNewEngine = false
Tested with Spire.Doc 11.3.1
- Code: Select all
var document = new Spire.Doc.Document();
//var document = new Spire.Doc.Document(useNewEngine: false); //this works
var section = document.AddSection();
var para = section.AddParagraph();
para.AppendHTML("Click this link <a href=\"https://google.com\">google.com</a>");
document.SaveToFile("C:\\Users\\Public\\Documents\\test123.pdf", FileFormat.PDF);