Free Support Forum - aspose.com

Doubt with a Product

Hello all,


I have interested in buy ASPOSE PDF for .NET but I have any doubts,

· If I have a Field in database with this content “

Hello

”, The render of PDF interpret and get the image file and put into PDF or no?

Thanks in advance,

Cheers!
This message was posted using Email2Forum by msabir.

Hi,

Thanks for your interest in our products.

As per your requirement, you can read the contents from database field, and try using BindHTML(…) method of Pdf class to accomplish this requirement. Please take a look over following code snippet in which I have tried converting HTML string into PDF format.

[C#]

Pdf pdf = new Pdf();
// Section section1 = pdf.Sections.Add();
pdf.BindHTML(“

Hello<img src=“d:\pdftest\ResultantBarcode.jpeg”/>

”);
//use following line to specify a string value that indicates the image url as from the database when converting HTML to PDF
// pdf.HtmlInfo.ImgUrl = “”;
// save resultant PDF
pdf.Save(@“d:/pdftest/HTML_Test.pdf”);

In case you face any problem or you have any further query, please feel free to contact. You may consider visiting
the following links for information on