I am trying to convert html to pdf; but somehow I am not able to do that.
There are two projects one is web application to call Spire methods and other is Library Project which consists Spire.PDF methods.
Now, I am sending html in string format to the pdf project; the string is as follows
- Code: Select all
String str = "<div id=\"c1\" style=\"background-image: url('Image/Tulips.jpg'); height: 1030.0px; width: 796.0px; position: relative;\"></div>"
The string contains image path; But this image is not getting added into the PDF. It is generating the blank PDF.
We have tried with localhost, physical path and path given in the above string; Still the image is not getting added.
What is the possible solution on this ? Why it not accessing any path. Reference of Spire.PDF is already given in the web application and Image folder resides in web application.
Regards,
David