Right converting HTML with Images to PDF
PDF Duo .Net component Tutorial with code example |
|
Task: |
 |
|
Create the HTML report with the image at the begin of the page. Save the report copy in the server archive as a PDF document. |
| |
| Directions: |
- Add PDF Duo .Net component to the project.
- Initialize the HtmlToPdf instance.
- Set BasePath property (for example:
BasePath = "www.my.com/productA/";
Then component translate string:
"<img src="./Image/img.gif">to the image with path:
www.my.com/productA/Image/img.gif.
- Compose report HTML string.
- Convert HTML to PDF document with help of the SavePDF function
|
| |
| Source code (ASP.NET + C#): |
| Download "cant computer image path.zip" |
|
C# + ASP.NET example |
|
|
|
| |
|
|
|