Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Mar 21, 2023 2:55 am

Hi guys

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);

formsbyair
 
Posts: 8
Joined: Tue Mar 29, 2016 8:13 am

Tue Mar 21, 2023 8:29 am

Hi ,

Thank you for your message.
I did reproduce your issue and have logged this issue into our tracking system with the ticket SPIREDOC-9190, our Dev team will do further investigation and fixing. Once there is any update, we will keep you informed. Sorry for the inconvenience caused.

Best Regards,
Herman
E-iceblue support team
User avatar

Herman.Yan
 
Posts: 115
Joined: Wed Mar 08, 2023 2:00 am

Tue Aug 01, 2023 2:55 am

Hello,

Thanks for your patience.
Glad to inform that we just released Spire.Doc Pack(hot fix) Version:11.7.25 which fixed the issue of SPIREDOC-9190, please download it from the following links to test.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/11.7.25

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc