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