Table of Contents
Hello World

This sample shows how to create a PDF file with one page with text "Hello, World!" on it.

using System;
using EO.Pdf;
using EO.Pdf.Acm;

namespace EO.Pdf.Demo
{
    public class Program
    {
        static void Main()
        {
            //Create an empty PDF document
            PdfDocument doc = new PdfDocument();
            
            //Create an ACM Render
            AcmRender render = new AcmRender(doc);
            
            //Create an ACM text object
            AcmText text = new AcmText("Hello World!");
            
            //Render the text object to the PDF
            render.Render(text);
            
            //Save the PDF file
            doc.Save("HelloWorld.pdf");
        }
    }
}