public static void Run()
{
try
{
// ExStart:InlineHTMLFromXML
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdfGenerator_Text();
// Create pdf document
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
// Bind XML into the document
pdf1.BindXML(dataDir + "InlineHTMLFromXML.xml", null);
// Save the document
pdf1.Save(dataDir + "InlineHTMLFromXML_out.pdf");
// ExEnd:InlineHTMLFromXML
}
catch (Exception ex)
{
Console.WriteLine(ex.Message );
}
}
public static void TestHtml()