SelectPdf for .NET - Get Web Elements Location in PDF - C# / ASP.NET Sample This sample shows how the html to pdf converter can locate certain web elements in the generated PDF using SelectPdf Pdf Library for .NET. The web elements are defined using CSS selectors. For example, the selector for all the H1 elements is "H1", the selector for all the elements with the CSS class name 'myclass' is "*.myclass" and the selector for the elements with the id 'myid' is "*#myid". Read more about CSS selectors here. The specified web elements will be marked/highlighted in PDF with a blue rectangle. Url: Web elements: