I have created a document with MigraDocs with several links. When i save the document to rtf i have all links, i have created in this document.
After saving this file with following code to pdf, some links are gone:
Code:
PdfDocumentRenderer bsnRenderer = new PdfDocumentRenderer(true, PdfSharp.Pdf.PdfFontEmbedding.Always);
bsnRenderer.Document = document;
bsnRenderer.RenderDocument();
bsnRenderer.PdfDocument.Save(strFilename);
(document is my MigraDoc.DocumentObjectModel.Document)
I have two different locations of links:
- In my header i have inserted four links to URLs. Three of them are working fine, the fourth is the last one in the line and there is only the text, but not the link.
- I have 2 tables, which are printed in the document, which have a 1:n relation. To add some usability i gave the user a link from the parent record to navigate in the other printed table using a link. And all child record have also a link to the parent record. In the parent table all links are gone. In the child table only the first record has only the text and not the link, the following child records of one parent record have the link.
How i said, using rtf format all links working correct, but i need this document as pdf.
Are there some setting or anything else to affect links while rendering a pdf document?