# Getting Started

This article shows how to create a PDF document with **RadPdfProcessing**.

> note If you still don't have **Telerik Document Processing** installed, check the [First Steps](https://www.telerik.com/document-processing-libraries/documentation/getting-started/first-steps) topic to learn how you can obtain the packages through the different suites.

## Required References

You can find the required references in the [PdfProcessing NuGet packages](https://www.telerik.com/document-processing-libraries/documentation/getting-started/installation/nuget-packages#pdfprocessing-packages) section.

## Creating a Document

[RadFixedDocument](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/radfixeddocument) is the root element in the library. It consists of [RadFixedPage](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/radfixedpage) objects and instructions for annotations and destinations in the document. **Example 1** shows how to create a document and add a page to it.

### **Example 1: Create a RadFixedDocument**

```C#
RadFixedDocument document = new RadFixedDocument();
RadFixedPage page = document.Pages.AddPage();
```

The page can then be edited through a [FixedContentEditor](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/editing/fixedcontenteditor) instance. **Example 2** creates an editor and adds a [TextFragment](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/textfragment) to the page object created in **Example 1**.

### **Example 2: Add text**

```C#
FixedContentEditor editor = new FixedContentEditor(page);
editor.DrawText("Hello RadPdfProcessing!");
```

## Exporting to PDF

Exporting to PDF format can be achieved with the `PdfFormatProvider` class. **Example 3** shows how to export the `RadFixedDocument` created in **Examples 1 and 2** to a file.

### **Example 3: Export to PDF**

```C#
PdfFormatProvider provider = new PdfFormatProvider();
using (Stream output = File.OpenWrite("Hello.pdf"))
{
    provider.Export(document, output, TimeSpan.FromSeconds(10));
}
```

For more complete examples, see the [developer-focused examples](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/sdk-examples) for the library.

## See Also

* [Using Telerik Document Processing First Steps](https://www.telerik.com/document-processing-libraries/documentation/getting-started/first-steps)
* [RadFixedDocument](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/radfixeddocument)
* [RadFixedPage](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/radfixedpage)
* [FixedContentEditor](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/editing/fixedcontenteditor)
* [TextFragment](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/textfragment)
* [PdfProcessing Basic Usage Demo](https://demos.telerik.com/document-processing/pdfprocessing)
