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.

Wed Jul 31, 2024 8:02 am

Hello,

I use Spire.doc 12.7.3 to fill word file with data and save it as pdf. Content of word is a table, which has a column that contains local file links with relative file paths. This links are created as:

Code: Select all
var fileParagraph = fileRow.Cells[0].AddParagraph();
fileParagraph.AppendHyperlink("./test.jpg", file.Name, HyperlinkType.FileLink);


After save as pdf with code:

Code: Select all
document.SaveToFile("C:\\Users\\georgiev\\Desktop\\Test5Pdf.pdf", FileFormat.PDF);


Result pdf file is ok but links not working. I check In pdf file directory test.jpg exists.
If i save as word file there is no problem, also from ms word application save resulted word file as pdf links are working super.

Can you help me, please

Georgi17
 
Posts: 8
Joined: Wed Jul 31, 2024 7:47 am

Wed Jul 31, 2024 10:09 am

Hello,

Thanks for your inquiry.
Yes, I have reproduced the issue you mentioned, and I have logged this issue to our issue tracking system with ticket SPIREDOC-10733, and our development team will further investigate and fix this issue. As a temporary solution, please save the document in docx format first, and then convert it to PDF format.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 453
Joined: Mon Dec 27, 2021 2:23 am

Wed Jul 31, 2024 10:59 am

Thank you for quick answer! How can i have notification when issue was fixed?

Georgi17
 
Posts: 8
Joined: Wed Jul 31, 2024 7:47 am

Thu Aug 01, 2024 7:20 am

Hello,

Thanks for your reply.
I will keep you informed if there is any progress on this issue.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 453
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc

cron