Live HTTP Links |
The converter turns every HTTP link of the HTML document into a link in the PDF document. This works for links on text, on images or on any other HTML content. It is the default behavior. If you do not want active links in the generated PDF document, set LiveUrlsEnabled to false: the links are still drawn as the page shows them, but clicking them does nothing.
PdfConverter pdfConverter = new PdfConverter(); pdfConverter.PdfDocumentOptions.LiveUrlsEnabled = false; pdfConverter.SavePdfFromUrlToFile("https://www.example.com", "no-links.pdf");
The HTML elements added to a Document have a property of the same name, LiveUrlsEnabled. Links inside the same document are controlled separately; see Internal Links.