# Document Processing

> Work with documents in WPF code-behind: object model, loading and saving, tables, sections, fields, forms, comments, XML, printing and ServerTextControl.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Document Processing
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/llms-full.txt

---

## On This Page

- [How Document Processing Works](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/#how-document-processing-works)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/#find-the-right-page)
- [Recommended Order](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/#recommended-order)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/#pages-in-this-section)

---

## In This Section

- [Charts and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/charts-barcodes/llms.txt): Insert Code 128 barcodes with the WPF TXBarcodeControl, validate and caption their text, update or remove them, and see why charts need Windows Forms.
- [Comments and Tracked Changes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/comments-changes/llms.txt): Accept or reject tracked changes by author in all WPF text parts, remove every comment and change before a PDF, and compare two documents with track changes.
- [Conditional Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/llms.txt): Validate WPF form fields with conditional instructions from the Form Fields ribbon tab or in C#: the Condition alias, date and regex rules and radio groups.
- [Content Controls](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/content-controls/llms.txt): Load MS Word content controls and legacy form fields into the WPF TextControl, then read, change and create them with FormCheckBox, FormText and field adapters.
- [Creating Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/creating/llms.txt): Create documents in a WPF window: clear the TextControl, set page size in 1/96 inch, insert formatted text, combine files, store properties, use IsUndoEnabled.
- [Exceptions and Error Handling](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/exceptions/llms.txt): Catch FilterException and LicenseLevelException in WPF code-behind, check return values, handle Task.Run errors and use DispatcherUnhandledException.
- [Fields and Subtext Parts](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/fields/llms.txt): Collect fields of all WPF text parts, read MS Word fields with adapters such as MergeField, IfField and NextIfField, and keep data in subtext parts.
- [Forms and Conditional Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/form-fields/llms.txt): Form fields in WPF code: TextFormField, CheckFormField, SelectionFormField and DateFormField values, their events, protection, validation and flattening.
- [Images, Text Frames, and Shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/images-shapes/llms.txt): Add images, text frames and shapes to the WPF TextControl, place them inline, anchored or fixed, and avoid the Image, Point and Size name clashes of WPF.
- [Loading Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/loading/llms.txt): Load and append documents in the WPF TextControl, filter fields with LoadSettings, read LoadedFile after the Open dialog, open protected PDFs and handle errors.
- [Document Object Model](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/object-model/llms.txt): The document model behind the WPF TextControl: text parts, IFormattedText, frames and sections, why collections follow the input focus, and the 1/96 inch unit.
- [Printing](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/printing/llms.txt): Print WPF documents without the editor: ServerTextControl with PrintDocument in the background, several files in one job and merged letters with MailMerge.
- [Saving and Converting Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/saving-converting/llms.txt): Convert a folder picked with OpenFolderDialog to PDF, save with the Save As dialog, export HTML with CSS, compress PDF images and leave out comments in WPF.
- [Sections, Pages, Headers, and Footers](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/sections-headers/llms.txt): Add landscape sections, chapter headers, page columns and borders in the WPF TextControl, open Page Setup in code and turn pages into BitmapImage thumbnails.
- [Using ServerTextControl in Desktop Applications](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/servertextcontrol/llms.txt): Keep a WPF window responsive with ServerTextControl: create it in code instead of XAML, hand documents to the TextControl as byte arrays and merge templates.
- [Tables and Calculations](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/tables/llms.txt): Create and fill tables in a WPF window, format cells and rows, change the table at the input position and add self-updating SUM formulas with number formats.
- [Text, Paragraphs, and Stylesheets](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/text-paragraphs/llms.txt): Format characters and paragraphs in the WPF TextControl, replace placeholders in headers and text frames, and define paragraph and inline styles and lists.
- [XML Processing](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/xml/llms.txt): Edit XML data in the WPF TextControl: load files with a DTD and CSS, handle XmlInvalid in XAML, change XmlElement objects and save the XML and its styles.

---

## Nearby

- **Previous:** [Events](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/events/llms.txt)
- **Next:** [Document Object Model](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/object-model/llms.txt)
