You can get the application root path value by using the ~ character. I’ve tested the scenario in which I’ve an image stored in “bin” folder which is present at my application root path. I’ve specified the ImgUrl using the following code line and the PDF is being generated correctly.
C#
// Define the path for the Image files being used by the HTML file
pdf.HtmlInfo.ImgUrl = "~/bin";
Can you please try using this approach and in case you still face any problem, please feel free to contact.