Table of Contents
- Getting Started
- EO.Pdf
- Overview
- Installation and Deployment
- Using HTML to PDF
- Using PDF Creator
- Using PDF Creator
- Getting Started
- Advanced Formatting Techniques
- Interactive Features
- Low Level Content Objects
- Working with Existing PDF Files
- Using in Web Application
- Advanced Topics
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
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"); } } }