Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
<%@ 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>
<%
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf();
// Set license
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense("Aspose.Total.lic");
// Create PDF document
using (var document = new Aspose.Pdf.Document())
{
// Add page
Aspose.Pdf.Page page = document.Pages.Add();
// Add text to new page
page.Paragraphs.Add(new Aspose.Pdf.Text.TextFragment("Hello World!"));
// Save PDF document
document.Save(dataDir + "HelloWorld_out.pdf");
}
%>
</body>
</html>
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.