ASP.NET without using Visual Studio

Implementation details

<%@ Page Language ="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Aspose.PDF" %>

<html>
    <head>
        <title> using Aspose.PDF for .NET with Inline ASP.NET</title>
    </head>
    <body>
        <h3>creation of simple PDF document while using Aspose.PDF for .NET with Inline ASP.NET</h3>
<%
    // set license
    Aspose.Pdf.License lic = new Aspose.Pdf.License();
    lic.SetLicense("D:\\ASPOSE\\Licences\\Aspose.Total licenses\\Aspose.Total.lic");

    // Initialize document object
    Document document = new Document();
    // Add page
    Page page = document.Pages.Add();
    // Add text to new page
    page.Paragraphs.Add(new Aspose.Pdf.Text.TextFragment("Hello World!"));
    // Save updated PDF
    var outputFileName = dataDir + "HelloWorld_out.pdf";
    document.Save(outputFileName);
%>

    </body>
</html>