Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
「Hello World」例は、プログラミング言語やソフトウェアの機能をシンプルなユースケースで紹介するために伝統的に使用されます。
Aspose.PDF for .NETは、開発者が.NETアプリケーションにPDFドキュメントの作成、操作、および変換機能を組み込むことを可能にする機能豊富なPDF APIです。PDF、XFA、TXT、HTML、PCL、XML、XPS、EPUB、TEX、および画像ファイル形式を含む多くの人気ファイル形式での作業をサポートしています。この記事では、「Hello World!」というテキストを含むPDFドキュメントを作成します。Aspose.PDF for .NETを環境にインストールした後、以下のコードサンプルを実行してAspose.PDF APIがどのように機能するかを確認できます。
以下のコードスニペットは、Aspose.PDF.Drawingライブラリでも動作します。
以下のコードスニペットは、次の手順に従います:
以下のコードスニペットは、Aspose.PDF for .NET APIの動作を示すHello Worldプログラムです。
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void HelloWorld()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf();
// Create PDF document
using (var document = new Aspose.Pdf.Document())
{
// Add page
var 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");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.